Changes between Version 4 and Version 6 of Ticket #29790


Ignore:
Timestamp:
Oct 8, 2018, 11:07:04 AM (6 years ago)
Author:
Richard Ebeling
Comment:

I can not reproduce this bug with SQLite either, sorry for not testing that before. We are running postgres version 9.6.9 and use psycopg2-binary version 2.7.5.. I added this information to the initial post.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29790 – Description

    v4 v6  
    1515The documentation states that [https://docs.djangoproject.com/en/stable/ref/models/fields/#django.db.models.Field.primary_key an object may not have more than one primary key].
    1616
    17 Still, in the release notes for django 2.1 it should be noted that django's behavior was changed here. Also, I would appreciate if there was some kind of documentation on how you should migrate primary keys from a field to another if no two primary keys are allowed in between. There should be a way without squashing the migrations as we want to keep the history.
     17Still, in the release notes for django 2.1 it should be noted that django's behavior was changed here. Also, I would appreciate if there was some kind of documentation on how you should migrate primary keys from a field to another if no two primary keys are allowed in between. There should be a way without squashing the migrations as we want to keep the history.
     18
     19We are running postgres version 9.6.9 and psycopg2-binary version 2.7.5.
     20The migration error will not occur when using a SQLite database.
Back to Top