module-shipper icon indicating copy to clipboard operation
module-shipper copied to clipboard

Cannot drop index 'SHIPPERHQ_ORDER_DETAIL_GRID_ORDER_ID': needed in a foreign key constraint

Open iindranil opened this issue 5 years ago • 3 comments

Hello,

I am getting this error [Cannot drop index 'SHIPPERHQ_ORDER_DETAIL_GRID_ORDER_ID': needed in a foreign key constraint] after upgraded Magento Version 2.3.4 to 2.4.2-p1

Details what I am using: Magento Version : 2.4.2-p1

"name": "shipperhq/module-shipper" "version": "20.45.6"

The above issue I am getting while run setup upgrade, If I disabled the module then our Magento running well.

Is there any solution available? Please let me know.

Thank you,

iindranil avatar Oct 26 '21 13:10 iindranil

Hi @iindranil ,

Thanks for the description of your issue. module-shipper's latest version is 20.45.6, can you tell me what version is currently installed? Please let me know your php and MySQL versions as well.

Can you please try uninstalling the module and then installing the latest version? You can use the command php bin/magento module:uninstall ShipperHQ_Shipper (excluding the -r flag) to cause the uninstallation process to ask you if you want to remove the product data, so that you can choose to preserve it. It would also be wise to back up your data to ensure nothing is lost while troubleshooting, just in case.

wsadasmit avatar Oct 26 '21 22:10 wsadasmit

I am facing the same error with installing the latest version in Magento 2.3 version. Is there any solution without uninstalling? SQLSTATE[HY000]: General error: 1553 Cannot drop index 'SHIPPERHQ_ORDER_DETAIL_GRID_ORDER_ID': needed in a foreign key constraint

armmage avatar Oct 27 '21 14:10 armmage

Thanks for raising this issue. We'll be creating a new release shortly which addresses it. Please update to that new version once its available

wsajosh avatar Nov 01 '21 17:11 wsajosh