Magento升级:解密错误消息

时间:2018-09-25 18:53:30

标签: magento upgrade

我的升级无法结束。您能帮我将此错误消息“翻译”成一个简单的句子吗?

错误消息

  

违反完整性约束:1452无法添加或更新子行:   外键约束失败   ({DATABASE-incrementalsalesrule_coupon_usage,约束   FK_SALESRULE_COUPON_CUSTOMER_CUSTOMER_ID_CUSTOMER_ENTITY外键   (customer_id)参考文献customer_entityentity_id)   O)“; i:1; s:1228:”#0   /is/htdocs/wpSERVER/www/clonsite-incremental/app/code/core/Mage/Core/Model/Resource/Setup.php(390):   Mage :: exception('Mage_Core','文件错误:...')

到目前为止,我了解到子表(“ salesrule_coupon_usage”)具有约束条件(“ FK_SALESRULE_COUPON_CUSTOMER_CUSTOMER_ID_CUSTOMER_ENTITY”),该约束使Magento与存在某些值(“ entity_id”)的父表(“ customer_entity”)进行比较子表(“ customer_id”)上的t。

我可以删除值,我想知道是否必须从父表中删除它们。

完成错误

a:5:{i:0;s:477:"Error in file: "/is/htdocs/wpSERVER/www/clonsite-incremental/app/code/core/Mage/SalesRule/sql/salesrule_setup/mysql4-upgrade-1.4.0.0.0-1.4.0.0.1.php" - SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`DATABASE-incremental`.`salesrule_coupon_usage`, CONSTRAINT `FK_SALESRULE_COUPON_CUSTOMER_CUSTOMER_ID_CUSTOMER_ENTITY` FOREIGN KEY (`customer_id`) REFERENCES `customer_entity` (`entity_id`) O)";i:1;s:1228:"#0 /is/htdocs/wpSERVER/www/clonsite-incremental/app/code/core/Mage/Core/Model/Resource/Setup.php(390): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /is/htdocs/wpSERVER/www/clonsite-incremental/app/code/core/Mage/Core/Model/Resource/Setup.php(289): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.7.12', '1.4.0.0.6')
#2 /is/htdocs/wpSERVER/www/clonsite-incremental/app/code/core/Mage/Core/Model/Resource/Setup.php(233): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.7.12', '1.4.0.0.6')
#3 /is/htdocs/wpSERVER/www/clonsite-incremental/app/code/core/Mage/Core/Model/Resource/Setup.php(161): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /is/htdocs/wpSERVER/www/clonsite-incremental/app/code/core/Mage/Core/Model/App.php(363): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /is/htdocs/wpSERVER/www/clonsite-incremental/app/code/core/Mage/Core/Model/App.php(295): Mage_Core_Model_App->_initModules()
#6 /is/htdocs/wpSERVER/www/clonsite-incremental/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#7 /is/htdocs/wpSERVER/www/clonsite-incremental/index.php(80): Mage::run('', 'store')
#8 {main}";s:3:"url";s:27:"/clonsite-incremental/admin";s:11:"script_name";s:31:"/clonsite-incremental/index.php";s:4:"skin";s:7:"default";}

谢谢!

0 个答案:

没有答案