Viewing File: /home/ubuntu/btcthrottle-backend/database/migrations/2023_10_05_134739_create_static_pages.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateStaticPages extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('static_pages', function (Blueprint $table) {
$table->id();
$table->string('unique_id')->unique();
$table->string('title')->unique();
$table->longText('description');
$table->enum('type',['about', 'privacy', 'terms', 'refund', 'cancellation', 'faq', 'help', 'contact', 'others'])->default('others');
$table->tinyInteger('footer_section')->default(FOOTER_SECTION_NONE);
$table->tinyInteger('status')->default(APPROVED);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('static_pages');
}
}
Back to Directory
File Manager