| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class Version20210428130552 extends AbstractMigration |
||
| 14 | { |
||
| 15 | public function getDescription(): string |
||
| 16 | { |
||
| 17 | return 'Add missing constraint to bitbag_wishlist_product'; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function up(Schema $schema): void |
||
| 21 | { |
||
| 22 | $this->addSql('ALTER TABLE bitbag_wishlist_product DROP FOREIGN KEY FK_3DBE67A0FB8E54CD'); |
||
| 23 | $this->addSql('ALTER TABLE bitbag_wishlist_product ADD CONSTRAINT FK_3DBE67A0FB8E54CD FOREIGN KEY (wishlist_id) REFERENCES bitbag_wishlist (id) ON DELETE CASCADE'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function down(Schema $schema): void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |