35 lines
946 B
PHP
35 lines
946 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('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');
|
|
}
|
|
};
|