migrate primary key changes

8 views
Skip to first unread message

raviteja nandula

unread,
May 15, 2015, 6:47:23 AM5/15/15
to django...@googlegroups.com
Hi All,

I have created a model with primary key, later i have removed the primary key and used default `id` as primary key

When i tried to migrate it is throwing error with multiple primary keys defined

Before running migrate i have executed on MySQL command interface

    "ALTER TABLE `table_name` DROP PRIMARY KEY;"


After this i re run the migrate. It executed perfectly.


Thanks
Ravi Teja N

Reply all
Reply to author
Forward
0 new messages