Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gkopec opened this issue May 13, 2024 · 0 comments
Open

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

gkopec opened this issue May 13, 2024 · 0 comments

Comments

@gkopec
Copy link

gkopec commented May 13, 2024

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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant