Skip to content

Conversation

@nguyenk
Copy link
Member

@nguyenk nguyenk commented Dec 24, 2025

No description provided.

@homersimpsons
Copy link
Collaborator

homersimpsons commented Dec 24, 2025

If I'm right the foreign keys might come from different tables. On MySQL the foreign key name should be unique per table. Hence it is possible to have the same name for both, leading to unstable sort.

An option would be to include the "from" table name in the sort function (I know that some of those functions are deprecated and will be removed in dbal 4, not sure for the one we would use here).

Should this sort go in the schema analyzer or here ? Do we want to add a test for this (this is maybe doable using a hand created schema).

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

Successfully merging this pull request may close these issues.

2 participants