Viewing File: /home/ubuntu/efidemo/database/migrations/2022_05_13_134058_create_static_pages_table.php

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateStaticPagesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('static_pages', function (Blueprint $table) {
            $table->id();
            $table->string('unique_id')->default(uniqid());
            $table->string('title')->unique();
            $table->text('description');
            $table->enum('type',['about','privacy','terms','refund','cancellation','faq','help','contact','others'])->default('others');
            $table->tinyInteger('status')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('static_pages');
    }
}
Back to Directory File Manager