#24264: foreign key constraint error migrating integer pk to CharField
-------------------------------------+-------------------------------------
     Reporter:  timgraham            |                    Owner:  MarkusH
         Type:  Bug                  |                   Status:  assigned
    Component:  Migrations           |                  Version:  1.8alpha1
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Markus Holtermann <info@…>):

 In [changeset:"cc22b009e05456e3d9cf3c152fe47fa27772be5e"]:
 {{{
 #!CommitTicketReference repository=""
 revision="cc22b009e05456e3d9cf3c152fe47fa27772be5e"
 Refs #24264 -- Added failing test case for updating a FK when changing a
 PK

 When the primary key column is altered, foreign keys of referencing
 models must be aware of a possible data type change as well and thus
 need to be re-rendered.

 Thanks Tim Graham for the report.
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24264#comment:9>
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/067.284103791ad4527c789c92b597b7b5f9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to