1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateVueRoutersTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('vue_routers', function (Blueprint $table) {
- $table->increments('id');
- $table->unsignedInteger('parent_id')->default(0);
- $table->string('title', 50);
- $table->string('path', 50)->nullable();
- $table->integer('order')->default(0);
- $table->string('icon', 50)->nullable();
- $table->tinyInteger('menu')->default(false);
- $table->tinyInteger('cache')->default(false);
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('vue_routers');
- }
- }
|