Conditions | 2 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function up(): void |
||
13 | { |
||
14 | try { |
||
15 | $this->changeColumnTypes(['poll' => ['question']], 'text'); |
||
16 | |||
17 | Schema::table($this->prefix . 'message', static function (Blueprint $table) { |
||
18 | $table->bigInteger('sender_chat_id')->comment('Sender of the message, sent on behalf of a chat')->after('chat_id'); |
||
19 | $table->text('proximity_alert_triggered')->nullable()->comment('Service message. A user in the chat triggered another user\'s proximity alert while sharing Live Location.')->after('passport_data'); |
||
20 | }); |
||
21 | } catch (Throwable $e) { |
||
22 | Log::error($e->getMessage()); |
||
23 | return; // Migration may be partly done already... |
||
24 | } |
||
42 |