Skip to content

Commit

Permalink
Remove obsolete alterColumn for fields
Browse files Browse the repository at this point in the history
Fields 'html_body' and 'html_text' was removed with the migration m170217_124201_drop_obsolete_columns_from_mail_queue_table.php
  • Loading branch information
marcogermani87 authored Oct 31, 2018
1 parent 3723d31 commit 0cfb46d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions migrations/m170510_063111_alter_text_fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0cfb46d

Please sign in to comment.