From 0cfb46da660851e983acc7e373dc20cfaf870a85 Mon Sep 17 00:00:00 2001 From: Marco Germani Date: Wed, 31 Oct 2018 10:06:37 +0100 Subject: [PATCH] Remove obsolete alterColumn for fields Fields 'html_body' and 'html_text' was removed with the migration m170217_124201_drop_obsolete_columns_from_mail_queue_table.php --- migrations/m170510_063111_alter_text_fields.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/migrations/m170510_063111_alter_text_fields.php b/migrations/m170510_063111_alter_text_fields.php index 6a996e4..86bd93e 100644 --- a/migrations/m170510_063111_alter_text_fields.php +++ b/migrations/m170510_063111_alter_text_fields.php @@ -8,15 +8,11 @@ class m170510_063111_alter_text_fields extends Migration { public function safeUp() { $table = Yii::$app->get(MailQueue::NAME)->table; - $this->alterColumn($table, 'html_body', 'LONGTEXT'); - $this->alterColumn($table, 'html_text', 'LONGTEXT'); $this->alterColumn($table, 'swift_message', 'LONGTEXT'); } public function safeDown() { $table = Yii::$app->get(MailQueue::NAME)->table; - $this->alterColumn($table, 'html_body', Schema::TYPE_TEXT); - $this->alterColumn($table, 'html_text', Schema::TYPE_TEXT); $this->alterColumn($table, 'swift_message', Schema::TYPE_TEXT); }