Skip to content

Commit

Permalink
Merge pull request #44 from necrox87/patch-2
Browse files Browse the repository at this point in the history
Remove obsolete alterColumn for fields
  • Loading branch information
nterms committed Nov 1, 2018
2 parents 15ec525 + 0cfb46d commit 85a7259
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 85a7259

Please sign in to comment.