From b5d0c4499cb55441e523708f7605bf8bf2c7d837 Mon Sep 17 00:00:00 2001 From: Raul Sanchez Date: Tue, 7 Jan 2025 12:00:36 +0100 Subject: [PATCH] fix Key column 'row_id' doesn't exist in table https://github.com/opengento/magento2-downgrade-ee-ce/issues/11 --- scripts/product.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/product.sql b/scripts/product.sql index a490c8e..b8910b0 100644 --- a/scripts/product.sql +++ b/scripts/product.sql @@ -354,7 +354,8 @@ ALTER TABLE `catalog_product_entity_media_gallery_value_to_entity` DROP FOREIGN KEY `CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_ROW_ID_CAT_PRD_ENTT_ROW_ID`, DROP INDEX `CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_ROW_ID_CAT_PRD_ENTT_ROW_ID`, ADD CONSTRAINT `CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_VAL_ID_ENTT_ID` UNIQUE KEY (`value_id`,`entity_id`), - DROP COLUMN `row_id`; + DROP PRIMARY KEY, ADD PRIMARY KEY (`value_id`), + DROP COLUMN `row_id`; -- Gallery value ALTER TABLE `catalog_product_entity_media_gallery_value`