mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Add statement to toggleable variant migration to enable existing
This commit is contained in:
parent
a7d78cd881
commit
7f3c21007e
1 changed files with 1 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ final class Version20200309172908 extends AbstractMigration
|
|||
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
|
||||
|
||||
$this->addSql('ALTER TABLE sylius_product_variant ADD enabled TINYINT(1) NOT NULL');
|
||||
$this->addSql('UPDATE sylius_product_variant SET enabled = 1');
|
||||
}
|
||||
|
||||
public function down(Schema $schema) : void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue