Enable all taxons upon migration

This commit is contained in:
Luca Gallinari 2020-03-30 11:18:41 +02:00 committed by Manuele Menozzi
parent 6ac8751de0
commit acb183aa2d

View file

@ -23,6 +23,7 @@ final class Version20200325075815 extends AbstractMigration
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE sylius_taxon ADD enabled TINYINT(1) NOT NULL');
$this->addSql('UPDATE sylius_taxon SET enabled = 1');
}
public function down(Schema $schema) : void