﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22460	Fix of removal of a ForeignKey field in a migration in MySQL	motiejus	nobody	"Consider the following:

1. A model has a ForeignKey() field.
2. Migration tries to remove it.
3. BAM! in MySQL:

{{{
OperationalError: (1025, ""Error on rename of './test_myapp/test_rfk_rider' to './test_myapp/#sql2-3398-2e8' (errno: 152)"")
}}}

Here is a patch with a regression test: https://github.com/django/django/pull/2571"	Bug	closed	Migrations	dev	Normal	fixed			Accepted	1	0	0	0	0	0
