[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 |
| Comment by arnaud-lb [ 26/Jun/11 ] |
|
Fixed by http://www.doctrine-project.org/jira/browse/DBAL-126 |