[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


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).

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 Dec 01 07:57:19 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.