﻿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
33488	Django rename migration does not rename the index	Jef D	nobody	"I tried to do a rename migration followed by a new field migration. This new field had the same name as the old field which was renamed.

The second migration failed on Postgres (not on SQLite). After an inspection it appears that the rename migration left the old index in place which made the new field migration fail.

Full details in this StackOverflow post: https://stackoverflow.com/questions/70970039/django-rename-field-and-create-new-one-with-the-same-name-returns-psycopg2-error/70971693#70971693

I don't know Django migrations well enough to judge if this is a Django issue or an psycopg issue. Since it occured in Django I will try this one first.

The current workaround is to manually drop or rename the old index."	Bug	closed	Migrations	4.0	Normal	duplicate	migration, postgresql		Unreviewed	0	0	0	0	0	0
