﻿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
28964	"RenameField after AddField after CreateModel in one operations list gives ProgrammingError: relation ""field"" does not exist"	Matthew Pava	nobody	"In one migration file, I have this series of operations:


{{{
migrations.CreateModel(m, fields=[a, b, c])
migrations.AddField(m, x)
migrations.RenameField(x, y)
}}}


I get this:
{{{
 ProgrammingError: column ""x_id"" does not exist.
}}}


I workaround it by replacing x with y in the `AddField` operation and then removing the `RenameField` operation.
"	Bug	closed	Migrations	1.11	Normal	duplicate			Unreviewed	0	0	0	0	0	0
