[PR #1522] remove indexes overruled by primary key #9579

Closed
opened 2026-01-22 16:04:45 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/1522

State: closed
Merged: No


There can be unique indexes automatically created for join column.
If join column is also primary key we should keep only primary key on this column.

Oracle does not allow having both unique index and primary key on the same column, it is useless for mysql too.
(Previously it was done by DBAL, but now it allows duplicate indexes)

**Original Pull Request:** https://github.com/doctrine/orm/pull/1522 **State:** closed **Merged:** No --- There can be unique indexes automatically created for join column. If join column is also primary key we should keep only primary key on this column. Oracle does not allow having both unique index and primary key on the same column, it is useless for mysql too. (Previously it was done by DBAL, but now it allows duplicate indexes)
admin added the pull-request label 2026-01-22 16:04:45 +01:00
admin closed this issue 2026-01-22 16:04:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9579