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