Magento - 产品扩展名出现DB错误

时间:2013-04-08 22:56:10

标签: magento

我已安装此扩展程序: http://www.magentocommerce.com/magento-connect/catalog/product/view/id/16917/

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`mysite_testsite2`.`cataloginventory_stock_item`, CONSTRAINT `FK_CATINV_STOCK_ITEM_PRD_ID_CAT_PRD_ENTT_ENTT_ID` FOREIGN KEY (`product_id`) REFERENCES `catalog_product_entity` (`entity_id`) O)

我有什么想法来解决这个问题?

1 个答案:

答案 0 :(得分:1)

尝试查看文件夹app / code / [local or community] / [companyname] / [modulename] / sql / [modulename] _setup / mysql4-install-x.x.x.php

你所做的只是修复create table sql ...

祝你好运:D