Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function up(Schema $schema): void |
||
22 | { |
||
23 | // this up() migration is auto-generated, please modify it to your needs |
||
24 | $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
25 | |||
26 | $this->addSql('ALTER TABLE sylius_channel ADD menu_taxon_id INT DEFAULT NULL'); |
||
27 | $this->addSql('ALTER TABLE sylius_channel ADD CONSTRAINT FK_16C8119EF242B1E6 FOREIGN KEY (menu_taxon_id) REFERENCES sylius_taxon (id) ON DELETE SET NULL'); |
||
28 | $this->addSql('CREATE INDEX IDX_16C8119EF242B1E6 ON sylius_channel (menu_taxon_id)'); |
||
29 | } |
||
30 | |||
41 |