在激活 category_flat 设置的情况下导入产品(和相应的类别)时,我们面临完整性约束违规错误。
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`XXXXXXXXX`.`catalog_category_flat_store_1`, CONSTRAINT `FK_CAT_CTGR_FLAT_STORE_1_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID` FOREIGN KEY (`entity_id`) REFERENCES `catalog_category_entity` (`entity_id`)
有没有办法在导入产品之前以编程方式禁用类别平面表?导入过程后,索引正在刷新。
谢谢!