mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
orm:schema-tool:update Execution plan fails due to ignoring existing fk constraints (mysql) #6749
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andig on GitHub (Jun 8, 2021).
I'm converting the following entity from using dedicated PK to composite PK by removing the id column. From:
To:
This creates the following execution plan:
The plan fails intermittendly due to
It seems that
ManyToOneFk relation is not handled properly when changing the underlying columns.@greg0ire commented on GitHub (Jun 10, 2021):
Duplicate of #8750
@andig commented on GitHub (Jun 10, 2021):
@greg0ire this is not a duplicate. #8750 is about planning redundant schema updates while this issue is about planning schema updates that will fail as constraints are not taken into account.
Could you please reopen?
@greg0ire commented on GitHub (Jun 10, 2021):
My bad sorry, read too fast