We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 15 | public function up() |
||
| 16 | { |
||
| 17 | Schema::table('menus', function (Blueprint $table) { |
||
| 18 | $table->dropColumn('slug'); |
||
| 19 | $table->dropColumn('icon'); |
||
| 20 | |||
| 21 | $table->renameColumn('link', 'hyperlink'); |
||
| 22 | $table->renameColumn('page_id', 'page_id'); |
||
| 23 | $table->renameColumn('menu_id', 'parent_id'); |
||
| 24 | $table->renameColumn('order_id', 'order'); |
||
| 25 | $table->renameColumn('required', 'lock'); |
||
| 26 | $table->renameColumn('enabled', 'status'); |
||
| 27 | $table->renameColumn('editor_id', 'editor_id'); |
||
| 28 | $table->renameColumn('creator_id', 'creator_id'); |
||
| 29 | }); |
||
| 30 | |||
| 31 | Schema::table('menus', function (Blueprint $table) { |
||
| 32 | $table->boolean('lock')->default(0)->nullable(false)->change(); |
||
| 33 | }); |
||
| 34 | |||
| 35 | $menu = new Menu; |
||
| 36 | $menu->title = ('Homepage'); |
||
| 37 | $menu->target = ('_self'); |
||
| 38 | $menu->order = 1; |
||
| 39 | $menu->page_id = 1; |
||
| 40 | $menu->status = true; |
||
| 41 | $menu->lock = true; |
||
| 42 | $menu->creator_id = 1; |
||
| 43 | $menu->save(); |
||
| 44 | } |
||
| 56 |