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.
--
Ticket URL: <https://code.djangoproject.com/ticket/33488>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
Comment:
Duplicate of #23577.
--
Ticket URL: <https://code.djangoproject.com/ticket/33488#comment:1>