Re: django - south :Getting error with migration

2014-08-21 Thread Lachlan Musicman
Hi Ram Yep, South supports MySQL - it's that MySQL doesn't support schema-altering statements in transactions. The problem is clearly stated - you are trying to make a field unique despite the data in that field *not* being unique. In particular, it looks like you have two entries with value '12

django - south :Getting error with migration

2014-08-21 Thread Ram Ganesh
Hi all I got this error while migrating app in django. I am using mysql FATAL ERROR - The following SQL query failed: ALTER TABLE `my_table` ADD CONSTRAINT `my_table_my_field_18bc0d26_uniq` UNIQUE (`my_field`) The error was: (1062, "Duplicate entry '123' for key 'my_table_my_field_18bc0d26_uniq