Skip to content

Include WHERE clause in auto-generated partial index names - #7429

Open
mikoajp wants to merge 1 commit into
doctrine:4.4.xfrom
mikoajp:fix/partial-index-name-includes-where-clause
Open

Include WHERE clause in auto-generated partial index names#7429
mikoajp wants to merge 1 commit into
doctrine:4.4.xfrom
mikoajp:fix/partial-index-name-includes-where-clause

Conversation

@mikoajp

@mikoajp mikoajp commented Jun 25, 2026

Copy link
Copy Markdown
Q A
Type bug
Fixed issues #7169

Summary

Include the WHERE clause in the auto-generated index name hash to prevent collisions between partial indexes defined on the same columns.

Partial indexes on the same columns but with different WHERE clauses
were getting the same auto-generated name, causing conflicts in schema
diff and migrations.

Fix by including the WHERE clause in the hash used to generate the
index name when no explicit name is provided.

Fixes doctrine#7169
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.

1 participant