From a57b5929cf5ec8b2c7dfa5fdd27f8c41c7a17528 Mon Sep 17 00:00:00 2001 From: jkindly Date: Wed, 3 Jul 2024 11:57:15 +0200 Subject: [PATCH] OP-325: Migration description --- src/Migrations/Version20240703083513.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Migrations/Version20240703083513.php b/src/Migrations/Version20240703083513.php index 591b102a..3e4e9105 100644 --- a/src/Migrations/Version20240703083513.php +++ b/src/Migrations/Version20240703083513.php @@ -1,5 +1,11 @@ addSql('CREATE TABLE bitbag_cms_media_products (media_id INT NOT NULL, product_id INT NOT NULL, INDEX IDX_91A7DAC24584665A (product_id), INDEX IDX_91A7DAC2EA9FDD75 (media_id), PRIMARY KEY(media_id, product_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' '); $this->addSql('ALTER TABLE bitbag_cms_media_products ADD CONSTRAINT FK_91A7DAC24584665A FOREIGN KEY (product_id) REFERENCES sylius_product (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE bitbag_cms_media_products ADD CONSTRAINT FK_91A7DAC2EA9FDD75 FOREIGN KEY (media_id) REFERENCES bitbag_cms_media (id) ON DELETE CASCADE');