mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3671: Duplicated unique indexes (@UniqueConstraint annotation) #4507
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 7, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user webimpress:
In this commit:
fc8beca086was changed to not checking for if index already exists. After that occur problem with duplicated unique keys (for example migrations try add unique index on the same columns with different index name).
This is an example model:
and the basic test:
(I've added it into:
tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php).Test failures, because generated schema contains three indexes (primary, and two unique on the same column with different names - one auto generated
uniq**and one provided in annotations -uniq*hash).@doctrinebot commented on GitHub (Apr 7, 2015):
@zerocrates commented on GitHub (Dec 10, 2015):
This looks like it was closed by the merge of #4508
@Ocramius commented on GitHub (Dec 11, 2015):
@zerocrates thanks, closing!