| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function down(): void |
||
| 31 | { |
||
| 32 | Schema::disableForeignKeyConstraints(); |
||
| 33 | |||
| 34 | try { |
||
| 35 | Schema::table($this->prefix . 'telegram_update', static function (Blueprint $table) { |
||
| 36 | $table->dropIndex('chat_message_id'); |
||
| 37 | $table->dropIndex('message_id'); |
||
| 38 | $table->index('message_id', 'message_id'); |
||
| 39 | }); |
||
| 40 | } catch (Throwable $e) { |
||
| 41 | Log::error($e->getMessage()); |
||
| 42 | return; // Migration may be partly done already... |
||
| 43 | } |
||
| 44 | |||
| 45 | Schema::enableForeignKeyConstraints(); |
||
| 46 | } |
||
| 48 |