Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
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).