DDC-1603: Unique key name isn't correctly set #2011

Closed
opened 2026-01-22 13:37:35 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 16, 2012).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user armetiz:

Example :

This will create :
CREATE UNIQUE INDEX UNIQ_6C3BF144F286BC32 ON shows (permalink);
CREATE UNIQUE INDEX 1 ON shows (code);

instead of :
CREATE UNIQUE INDEX UNIQ_6C3BF144F286BC32 ON shows (permalink);
CREATE UNIQUE INDEX UNIQ_6C3BF14477153098 ON shows (code);

The problem comme from SchemaTool, and the first key is a valid result because of "==" instead of "===" inside Table.php.

I have create a PR on Github.

Originally created by @doctrinebot on GitHub (Jan 16, 2012). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user armetiz: Example : <unique-constraints> <unique-constraint columns="permalink" /> <unique-constraint columns="code" /> </unique-constraints> This will create : CREATE UNIQUE INDEX UNIQ_6C3BF144F286BC32 ON shows (permalink); CREATE UNIQUE INDEX 1 ON shows (code); instead of : CREATE UNIQUE INDEX UNIQ_6C3BF144F286BC32 ON shows (permalink); CREATE UNIQUE INDEX UNIQ_6C3BF14477153098 ON shows (code); The problem comme from SchemaTool, and the first key is a valid result because of "==" instead of "===" inside Table.php. I have create a PR on Github.
admin added the Bug label 2026-01-22 13:37:35 +01:00
admin closed this issue 2026-01-22 13:37:36 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 16, 2012):

Comment created by armetiz:

Here the PR for the ORM SchemaTool : https://github.com/doctrine/doctrine2/pull/261
Here the PR for the DBAL Table : https://github.com/doctrine/dbal/pull/94

@doctrinebot commented on GitHub (Jan 16, 2012): Comment created by armetiz: Here the PR for the ORM SchemaTool : https://github.com/doctrine/doctrine2/pull/261 Here the PR for the DBAL Table : https://github.com/doctrine/dbal/pull/94
Author
Owner

@doctrinebot commented on GitHub (Jan 17, 2012):

Comment created by @guilhermeblanco:

Merged 2bb511584e

@doctrinebot commented on GitHub (Jan 17, 2012): Comment created by @guilhermeblanco: Merged https://github.com/doctrine/doctrine2/commit/2bb511584e5d37ddad6c669a19d8e6b4a20f7b2b
Author
Owner

@doctrinebot commented on GitHub (Jan 17, 2012):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jan 17, 2012): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Jan 21, 2012):

Comment created by @beberlei:

DBAL merged back into 2.2 and 2.1.x

@doctrinebot commented on GitHub (Jan 21, 2012): Comment created by @beberlei: DBAL merged back into 2.2 and 2.1.x
Author
Owner

@doctrinebot commented on GitHub (Jan 21, 2012):

Comment created by @beberlei:

and Merged into 2.2 and 2.1.x ORM

@doctrinebot commented on GitHub (Jan 21, 2012): Comment created by @beberlei: and Merged into 2.2 and 2.1.x ORM
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2011