| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create(config('menu.table_prefix').config('menu.table_name_items'), function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->string('label'); |
||
| 19 | $table->string('link'); |
||
| 20 | $table->integer('parent')->unsigned()->default(0); |
||
| 21 | $table->integer('sort')->default(0); |
||
| 22 | $table->string('class')->nullable(); |
||
| 23 | $table->integer('menu')->unsigned(); |
||
| 24 | $table->integer('depth')->default(0); |
||
| 25 | $table->timestamps(); |
||
| 26 | |||
| 27 | $table->foreign('menu')->references('id')->on(config('menu.table_prefix').config('menu.table_name_menus')) |
||
| 28 | ->onDelete('cascade') |
||
| 29 | ->onUpdate('cascade'); |
||
| 30 | }); |
||
| 43 |