File tree Expand file tree Collapse file tree 1 file changed +1
-0
lines changed
Expand file tree Collapse file tree 1 file changed +1
-0
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,7 @@ ALTER TABLE `catalog_product_website`
459459 DROP FOREIGN KEY ` CAT_PRD_WS_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` ,
460460 ADD CONSTRAINT ` CAT_PRD_WS_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (` product_id` ) REFERENCES ` catalog_product_entity` (` entity_id` ) ON DELETE CASCADE ON UPDATE RESTRICT;
461461
462+ DELETE c.* FROM ` catalog_url_rewrite_product_category` c LEFT JOIN catalog_product_entity p ON c .product_id = p .entity_id WHERE p .entity_id IS NULL ;
462463ALTER TABLE ` catalog_url_rewrite_product_category`
463464 DROP FOREIGN KEY ` CAT_URL_REWRITE_PRD_CTGR_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL` ,
464465 ADD CONSTRAINT ` CAT_URL_REWRITE_PRD_CTGR_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (` product_id` ) REFERENCES ` catalog_product_entity` (` entity_id` ) ON DELETE CASCADE ON UPDATE RESTRICT;
You can’t perform that action at this time.
0 commit comments