[DMIG-20] migrations try to create an index with name "primary" for ManyToMany associations Created: 06/Mar/11  Updated: 26/Jun/11  Resolved: 26/Jun/11

Status: Resolved
Project: Doctrine Migrations
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: arnaud-lb Assignee: Jonathan H. Wage
Resolution: Fixed Votes: 1
Labels: None


 Description   

For ManyToMany associations, migrations try to create a unique index on (joinColumn, inverseJoinColumn) having name "primary":

CREATE UNIQUE INDEX primary ON join_table (joinColumn, inverseJoinColumn);

Which results in a syntax error on MySQL (primary is also an invalid key name).



 Comments   
Comment by Karsten Dambekalns [ 25/Jun/11 ]

Caused by / related to DBAL-126

Comment by arnaud-lb [ 26/Jun/11 ]

Fixed by http://www.doctrine-project.org/jira/browse/DBAL-126

Generated at Tue Sep 23 10:37:00 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.