New issue 112 by dmitry.risenberg: Make changing primary_key property
possible
http://code.google.com/p/django-evolution/issues/detail?id=112
It would be great if django-evolution supported changing the primary_key
property of model fields. Now when I move primary_key constraint from one
field to another, it fails to apply the change to database with error
"ChangeField does not support modifying the 'primary_key' attribute on
'FeedEntry.entrybase_ptr'". I have written a patch that solves the problem
for SQLite (see attachment) by postponing addition of new primary keys to
the moment when deletion of old ones has already happened. Maybe it will
also work this way for other databases, cannot test that right now.
Attachments:
django_evolution.diff 2.6 KB
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings