| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class UpdateSchema0541To0550 extends Migration |
||
| 11 | { |
||
| 12 | public function up(): void |
||
| 13 | { |
||
| 14 | try { |
||
| 15 | Schema::table($this->prefix . 'message', static function (Blueprint $table) { |
||
| 16 | $table->text('animation')->nullable()->comment('Message is an animation, information about the animation')->after('document'); |
||
| 17 | $table->text('passport_data')->nullable()->comment('Telegram Passport data')->after('connected_website'); |
||
| 18 | }); |
||
| 19 | } catch (Throwable $e) { |
||
| 20 | Log::error($e->getMessage()); |
||
| 21 | return; // Migration may be partly done already... |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | public function down(): void |
||
| 35 | } |
||
| 36 | } |
||
| 38 |