DDC-4001: [GH-1558] [RFC] remove indexes overruled by primary key #4885

Closed
opened 2026-01-22 14:51:28 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 15, 2015).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of guilhermeblanco:

Url: https://github.com/doctrine/doctrine2/pull/1558

Message:

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)

Originally created by @doctrinebot on GitHub (Nov 15, 2015). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of guilhermeblanco: Url: https://github.com/doctrine/doctrine2/pull/1558 Message: 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 Bug label 2026-01-22 14:51:28 +01:00
admin closed this issue 2026-01-22 14:51:29 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 15, 2015):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Nov 15, 2015): Issue was closed with resolution "Duplicate"
Author
Owner

@doctrinebot commented on GitHub (Nov 15, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1558] was merged:
https://github.com/doctrine/doctrine2/pull/1558

@doctrinebot commented on GitHub (Nov 15, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1558] was merged: https://github.com/doctrine/doctrine2/pull/1558
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4885