master_template/database/migrations/2024_06_10_101744_create_tbl_shortcodes.php
2024-06-10 18:06:58 +05:45

36 lines
982 B
PHP

<?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('shortcodes', function (Blueprint $table) {
$table->id('shortcode_id');
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->string('text', 255)->nullable();
$table->text('description')->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->nullable();
$table->timestamps();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('shortcodes');
}
};