﻿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
24995	MySQL 5.5.x errno: 150 when renaming a primary key	EikeDehling	nobody	"In a migration where a primary-key field is renamed, a mysql error occurs, because mysql needs foreign keys to be disabled/dropped for that operation.

See here for an example of the  error you would get: http://stackoverflow.com/questions/4080611/1025-error-on-rename-of-database-sql-2e0f-1254ba7-to-database-table


I have a patch which fixes the issue: https://github.com/EikeDehling/django/commit/dbe0c4692fe1a7d73e4de345a171b8cbb35651b2

Please let me know what i can do to get this merged/fixed in django."	Bug	closed	Migrations	1.8	Normal	wontfix	rename mysql error	eike@…	Accepted	1	0	0	1	0	0
