AmpersandHQ / magento2-disable-stock-reservation

This module disables the inventory reservation logic introduced as part of MSI in Magento 2.3.3
GNU Lesser General Public License v3.0
215 stars 61 forks source link

Cannot truncate a table referenced in a foreign key constraint #135

Open gkopec opened 4 months ago

gkopec commented 4 months ago

Is this my environment only?

[stage] Unable to apply patch Ampersand\DisableStockReservation\Setup\Patch\Schema\RemoveExistingReservations for module Ampersand_DisableStockReservation. Original exception message: SQLSTATE[42000]: Syntax error or access violation: 1701 Cannot truncate a table referenced in a foreign key constraint (`magetip_stage`.`allegro_reservations`, CONSTRAINT `FK_0DF36C9A02B0CEA1AF96F370F2C37537`), query was: TRUNCATE TABLE `inventory_reservation`