master_template/database/migrations/2024_06_13_161701_create_menulocations.php

35 lines
946 B
PHP
Raw Normal View History

2024-06-15 16:38:54 +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('menulocations', function (Blueprint $table) {
$table->id('menulocation_id');
$table->string('title', 255)->nullable()->default(null);
$table->string('alias', 255)->nullable()->default(null);
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->integer('createdby')->nullable()->default(null);
$table->integer('updatedby')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('menulocations');
}
};