#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:"5220ca8d8a109721378e8d4c7f32e342c3a83af6" 5220ca8]:
{{{
#!CommitTicketReference repository=""
revision="5220ca8d8a109721378e8d4c7f32e342c3a83af6"
Refs #30591 -- Adjusted table rebuild for non-pk relationship on SQLite.
The existing code was only accounting for primary key changes and not
all unique key fields that can be referenced.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30591#comment:11>
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.462566e1812da52e7294843a3f891177%40djangoproject.com.