master_template/database/migrations/2024_06_10_092744_create_tbl_faqs.php

34 lines
856 B
PHP
Raw Permalink Normal View History

2024-06-10 12:21:58 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('faqs', function (Blueprint $table) {
$table->id('faq_id');
$table->text('title')->nullable();
$table->text('description')->nullable();
$table->integer('display_order')->default(0);
$table->integer('status')->default(1);
$table->integer('createdby')->default(NULL);
$table->integer('updatedby')->default(NULL);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('faqs');
}
};