| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | <?phpuse Illuminate\Support\Facades\Schema;use Illuminate\Database\Schema\Blueprint;use Illuminate\Database\Migrations\Migration;/** * Migration auto-generated by Sequel Pro Laravel Export * @see https://github.com/cviebrock/sequel-pro-laravel-export */class CreateAdminMenusTable extends Migration{    /**     * Run the migrations.     *     * @return void     */    public function up()    {        Schema::create('admin_menus', function (Blueprint $table) {            $table->increments('id');            $table->integer('pid');            $table->char('path', 60)->comment('URL');            $table->char('name', 50)->comment('节点的名字');            $table->tinyInteger('display')->default(1)->comment('1为显示为菜单,0则不显示');            $table->integer('sort')->default(1)->comment('排序');            $table->tinyInteger('level')->default(1)->comment('第几级菜单');            $table->char('ico', 20)->comment('菜单图标');            $table->string('mark', 200)->default('')->comment('备注');            $table->timestamps();            $table->softDeletes();            $table->index('deleted_at', 'idx_deleted_at');                    });    }    /**     * Reverse the migrations.     *     * @return void     */    public function down()    {        Schema::dropIfExists('admin_menus');    }}
 |