Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Tools
-
Security Level: All
-
Labels:None
Description
When switching owning side of a many2many bi-directional association, it produces this type of SQL to be executed:
DROP INDEX primary ON CompanyEntity_CompanyEmailDomain; CREATE UNIQUE INDEX primary ON CompanyEntity_CompanyEmailDomain (emaildomain_id, company_id)
The problem is that "primary" is a reserved keyword in MySQL.
It should be quoted. =)
The problem is that its a primary key and should be dropped using the appropriate syntax. And not created as a unique one aswell.