Compare commits
3 Commits
b71b5884d0
...
8844463d77
Author | SHA1 | Date | |
---|---|---|---|
8844463d77 | |||
65cd4ee79a | |||
66be4801f9 |
35
_migrations/menuMigration.php
Normal file
35
_migrations/menuMigration.php
Normal 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
2
composer.lock
generated
@ -2495,5 +2495,5 @@
|
|||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": [],
|
"platform": [],
|
||||||
"platform-dev": [],
|
"platform-dev": [],
|
||||||
"plugin-api-version": "2.3.0"
|
"plugin-api-version": "2.6.0"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user