Compare commits

...

3 Commits

Author SHA1 Message Date
8844463d77 menu table add 2024-08-30 11:27:10 +03:00
65cd4ee79a some fix 2024-08-29 16:27:42 +03:00
66be4801f9 some fix 2024-08-29 16:21:33 +03:00
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,35 @@
<?php
namespace _migrations;
use Illuminate\Database\Capsule\Manager;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class menuMigration extends Migration
{
public static function up(): void
{
Manager::schema()->create('menu', function (Blueprint $table) {
$table->increments('id');
$table->integer('parent_id')->default(1);
$table->string('icon_file', 255)->nullable(false);
$table->string('icon_font', 255);
$table->string('label', 255);
$table->string('url', 255);
$table->integer('status')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public static function down(): void
{
Manager::schema()->dropIfExists('menu');
}
}
}

2
composer.lock generated
View File

@ -2495,5 +2495,5 @@
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.6.0"
}