#30591: MySQL: 1215 - "Cannot add foreign key constraint" when altering type of
unique field referenced by ForeignKey.
----------------------------------+--------------------------------------
     Reporter:  Cornelis Poppema  |                    Owner:  Adnan Umer
         Type:  Bug               |                   Status:  closed
    Component:  Migrations        |                  Version:  master
     Severity:  Normal            |               Resolution:  fixed
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  1                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"acb11725f814b925d394f3923241f741b834d1b9" acb1172]:
 {{{
 #!CommitTicketReference repository=""
 revision="acb11725f814b925d394f3923241f741b834d1b9"
 [3.0.x] Fixed #30591 -- Fixed recreation of foreign key constraints on
 MySQL when altering type of referenced unique field.

 Thanks Mariusz Felisiak for tests and Matthijs Kooijman for
 investigation and initial patch.

 Backport of 241deed2590bcb1d8c45271d44c86eaedfb57119 from master
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30591#comment:8>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.2734b846f7fbcd597ca0d4529f7113a1%40djangoproject.com.

Reply via email to