Skip to content

Commit

Permalink
Merge pull request #201 from StalkAlex/patch-1
Browse files Browse the repository at this point in the history
Update m170126_000001_alter_audit_mail.php
  • Loading branch information
cornernote authored Mar 26, 2017
2 parents 4bde331 + f5dc529 commit 2ae3510
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/migrations/m170126_000001_alter_audit_mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ class m170126_000001_alter_audit_mail extends Migration

public function up()
{
$this->alterColumn(self::TABLE, 'data', 'LONGBLOB');
if ($this->db->driverName === 'mysql') {
$this->alterColumn(self::TABLE, 'data', 'LONGBLOB');
} else {
$this->alterColumn(self::TABLE, 'data', 'BYTEA');
}
}

}

0 comments on commit 2ae3510

Please sign in to comment.