| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('menu__menuitems', function (Blueprint $table) { |
||
| 16 | $table->engine = 'InnoDB'; |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('menu_id')->unsigned(); |
||
| 19 | $table->foreign('menu_id')->references('id')->on('menu__menus')->onDelete('cascade'); |
||
| 20 | $table->integer('page_id')->unsigned()->nullable(); |
||
| 21 | $table->integer('position')->unsigned()->default(0); |
||
| 22 | $table->string('target', 10)->nullable(); |
||
| 23 | $table->string('module_name')->nullable(); |
||
| 24 | |||
| 25 | /* Nested Sets */ |
||
| 26 | $table->integer('parent_id')->nullable(); |
||
| 27 | $table->integer('lft')->nullable(); |
||
| 28 | $table->integer('rgt')->nullable(); |
||
| 29 | $table->integer('depth')->nullable(); |
||
| 30 | |||
| 31 | $table->timestamps(); |
||
| 32 | }); |
||
| 33 | } |
||
| 34 | |||
| 45 |