#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 ----------------------------------+-------------------------------------- Changes (by Mariusz Felisiak <felisiak.mariusz@…>):
* status: assigned => closed * resolution: => fixed Comment: In [changeset:"241deed2590bcb1d8c45271d44c86eaedfb57119" 241deed2]: {{{ #!CommitTicketReference repository="" revision="241deed2590bcb1d8c45271d44c86eaedfb57119" 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. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/30591#comment:7> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.695d2b3ee89ab3bcefa553aaf7e5ece8%40djangoproject.com.