Skip to content


DBAL-617: [GH-380] Fix schema comparison with FK that contain quoted column names. #1832

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user @doctrinebot:

In case QuoteStrategy decides to quote column names for FK, schema comparator (and in effect - schema tool), will be stuck in an ALTER TABLE * DROP FOREIGN KEY loop, because it doesn't recognise old indexes with matching column names.

The problem lies inside Comparator, which relied on column names that might or might not be quoted (depending on platform, schema and dbal settings). The comparison must be performed on unquoted column names both ways, as it is already performed for normal indexes, table names and columns names.


Comment created by @doctrinebot:

A related Github Pull-Request [GH-380] was closed:


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.4.2 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.