Django people... Would having migration files that, at their time of creation, defined `index_together` still cause warnings of;

RemovedInDjango51Warning: 'index_together' is deprecated

All models have, for some time, used `indexes = []`

Typically when someone is talking about modifying historic migrations I assume there is something else at fault.

#django

@markwalker I think there was a forum post about this a while back. I hit a similar thing when trying to upgrade to 5.1 and got blocked by this. I'm on my mobile but if I remember later I will link it here.

@nanorepublica Thanks - found an issue that points to the 4.2 release notes where there was a mention of squashing migrations to get rid of this.

https://code.djangoproject.com/ticket/34856

#34856 (Running tests with historical migrations that contain index together fails with TypeError.) – Django

Django 5.1 - AlterIndexTogether raising TypeError: 'class Meta' got invalid attribute(s): index_together

Hi again! How can I help moving this forward? Are we in need of more community discussion? I would really like to see a fix for this 🙂

Django Forum