| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function down(Schema $schema) |
||
| 30 | { |
||
| 31 | // this down() migration is auto-generated, please modify it to your needs |
||
| 32 | $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
| 33 | |||
| 34 | $this->addSql('ALTER TABLE sylius_product_review DROP FOREIGN KEY FK_C7056A99F675F31B'); |
||
| 35 | $this->addSql('ALTER TABLE sylius_product_review CHANGE author_id author_id INT DEFAULT NULL'); |
||
| 36 | $this->addSql('ALTER TABLE sylius_product_review ADD CONSTRAINT FK_C7056A99F675F31B FOREIGN KEY (author_id) REFERENCES sylius_customer (id)'); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |