#25733: Change of inherited model's primary key not spotted by makemigrations
----------------------------+--------------------
     Reporter:  dracos      |      Owner:  nobody
         Type:  Bug         |     Status:  new
    Component:  Migrations  |    Version:  1.8
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+--------------------
 I have an inherited model - class Speaker(Person) - where Person is from a
 third party module. That module has updated, changing their ID from
 implicit to an explicit id CharField, but updating that module and trying
 to migrate fails because it says "Key columns "person_ptr_id" and "id" are
 of incompatible types: integer and character varying".

 Presumably I need a migration in my module to change the implicit
 OneToOneField to be a CharField to match, but "makemigrations" doesn't
 find any change needed, it's still an integer.

--
Ticket URL: <https://code.djangoproject.com/ticket/25733>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.b0dac6eb6672fe8fffff5fe4cedbe5be%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to