Fixup for valuemax migration

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-04-11 20:18:20 +02:00
parent 103c307059
commit 2c8d0e1f2d
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -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]);
}
/**