Conditions | 2 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function down(): void |
||
28 | { |
||
29 | try { |
||
30 | Schema::table($this->prefix . 'message', static function (Blueprint $table) { |
||
31 | $table->dropColumn('proximity_alert_triggered'); |
||
32 | $table->dropColumn('sender_chat_id'); |
||
33 | }); |
||
34 | |||
35 | $this->changeColumnTypes(['poll' => ['question']], 'char(255)'); |
||
36 | } catch (Throwable $e) { |
||
37 | Log::error($e->getMessage()); |
||
38 | return; // Migration may be partly done already... |
||
39 | } |
||
42 |