#30966: Migration crashes due to foreign key issue, depending on otherwise irrelevant order on MySQL. -------------------------------------+------------------------------------- Reporter: Peter Thomassen | Owner: Hasan | Ramezani Type: Bug | Status: assigned Component: Migrations | Version: master Severity: Normal | Resolution: Keywords: migration mySQL | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Markus Holtermann): Replying to [comment:12 Hasan Ramezani]: > this is an alter migration and the `AlterField.state_forwards` reloads 3 models of 4 (User, Domain, RRest) and don't reload the Token model. > If I reload the Token model this test will be passed. > > > Should I change the function to find proper models to reload? > Is it the right solution? This is essentially approach 1 from my list in [comment:13] -- Ticket URL: <https://code.djangoproject.com/ticket/30966#comment:14> 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/072.b7553469559fddbade447ccc471c0530%40djangoproject.com.