mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Enable all taxons upon migration
This commit is contained in:
parent
6ac8751de0
commit
acb183aa2d
1 changed files with 1 additions and 0 deletions
|
|
@ -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->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('ALTER TABLE sylius_taxon ADD enabled TINYINT(1) NOT NULL');
|
||||||
|
$this->addSql('UPDATE sylius_taxon SET enabled = 1');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function down(Schema $schema) : void
|
public function down(Schema $schema) : void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue