2019_06_03_191357_create_vue_routers_table.php 975 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateVueRoutersTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('vue_routers', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->unsignedInteger('parent_id')->default(0);
  17. $table->string('title', 50);
  18. $table->string('path', 50)->nullable();
  19. $table->integer('order')->default(0);
  20. $table->string('icon', 50)->nullable();
  21. $table->tinyInteger('menu')->default(false);
  22. $table->tinyInteger('cache')->default(false);
  23. $table->timestamps();
  24. });
  25. }
  26. /**
  27. * Reverse the migrations.
  28. *
  29. * @return void
  30. */
  31. public function down()
  32. {
  33. Schema::dropIfExists('vue_routers');
  34. }
  35. }