| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function down(Schema $schema) |
||
| 32 | { |
||
| 33 | // this down() migration is auto-generated, please modify it to your needs |
||
| 34 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
| 35 | |||
| 36 | $this->addSql('ALTER TABLE sylius_channel DROP FOREIGN KEY FK_16C8119E3101778E'); |
||
| 37 | $this->addSql('DROP INDEX IDX_16C8119E3101778E ON sylius_channel'); |
||
| 38 | $this->addSql('ALTER TABLE sylius_channel CHANGE base_currency_id default_currency_id INT NOT NULL'); |
||
| 39 | $this->addSql('ALTER TABLE sylius_channel ADD CONSTRAINT FK_16C8119EECD792C0 FOREIGN KEY (default_currency_id) REFERENCES sylius_currency (id)'); |
||
| 40 | $this->addSql('CREATE INDEX IDX_16C8119EECD792C0 ON sylius_channel (default_currency_id)'); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |