| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function upgrade(): void |
||
| 32 | { |
||
| 33 | if (DB::schema()->hasTable('maj_hooks')) { |
||
| 34 | DB::schema()->drop('maj_hooks'); |
||
| 35 | } |
||
| 36 | |||
| 37 | DB::schema()->create('maj_hook_order', static function (Blueprint $table): void { |
||
| 38 | $table->string('majho_module_name', 32); |
||
| 39 | $table->string('majho_hook_name', 64); |
||
| 40 | $table->integer('majho_hook_order')->nullable(); |
||
| 41 | |||
| 42 | $table->primary(['majho_module_name', 'majho_hook_name']); |
||
| 43 | }); |
||
| 46 |