sqldiff produces invalid code for MySQL UNIQUE

21 views
Skip to first unread message

Mikhail Simin

unread,
Apr 28, 2014, 8:37:14 PM4/28/14
to django-e...@googlegroups.com
I ran sqldiff on one of my models and it produced the following:

ALTER TABLE `data_accuweatherlocation`
ADD COLUMN UNIQUE (`locationid`);

the COLUMN word should not be present to create this constraint.

trbs

unread,
Apr 29, 2014, 5:15:00 AM4/29/14
to django-e...@googlegroups.com
Thanks for the report !

Could you create a ticket for this on Github ?

Regards,
Trbs

trbs

unread,
Apr 29, 2014, 11:18:47 AM4/29/14
to django-e...@googlegroups.com
Seems this was wrong for PostGreSQL and SQLite as well.

Fix has been committed, thanks for the report !
Reply all
Reply to author
Forward
0 new messages