diff --git a/src/Migrations/Version20180220000000.php b/src/Migrations/Version20180220000000.php index a1f0d54..2ffcae9 100644 --- a/src/Migrations/Version20180220000000.php +++ b/src/Migrations/Version20180220000000.php @@ -47,8 +47,7 @@ class Version20180220000000 extends AbstractMigration public function up(Schema $schema) { $pollTable = $schema->getTable(Utils::table('poll')); - $pollTable->addColumn('ValueMax', 'smallint'); - $this->addSql('ALTER TABLE ' . Utils::table('poll') . ' ADD `ValueMax` TINYINT NULL;'); + $pollTable->addColumn('ValueMax', 'smallint', ['default' => null]); } /**