Skip to content

Compare the introspected table to the declared one - #7480

Merged
morozov merged 1 commit into
doctrine:4.4.xfrom
morozov:compare-introspected-to-declared
Jul 26, 2026
Merged

Compare the introspected table to the declared one#7480
morozov merged 1 commit into
doctrine:4.4.xfrom
morozov:compare-introspected-to-declared

Conversation

@morozov

@morozov morozov commented Jul 26, 2026

Copy link
Copy Markdown
Member

Several tests introspect a table and compare it against the schema they declared, but pass the arguments the wrong way round: the declared table first, the introspected one second.

The comparator takes the current schema first and the desired one second, and the comparison isn't symmetric. Some of this asymmetry was introduced #4746 and some more may be introduced in #7477 (e.g. indexes automatically created by the database are expected to exist in the database but not in the application schema).

The comparator takes the current schema first and the desired one second.
Several tests had them the other way round.
@morozov morozov added this to the 4.4.5 milestone Jul 26, 2026
@morozov
morozov requested a review from greg0ire July 26, 2026 04:31
@morozov
morozov marked this pull request as ready for review July 26, 2026 04:31
@morozov
morozov merged commit f6c445d into doctrine:4.4.x Jul 26, 2026
130 checks passed
@morozov
morozov deleted the compare-introspected-to-declared branch July 26, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants