﻿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
37151	Add support for squashing across AddIndex, AddConstraint, and AlterConstraint	Markus Holtermann	Markus Holtermann	"The `AddIndex`, `AddConstraint`, and `AlterConstraint` migration operations straight out reject squashing across them.

Let's take the following set of operations:

{{{
[
    migrations.CreateModel(""A"", fields=[(""id"", models.BigAutoField())]),
    migrations.AddIndex(""b"", models.Index(fields=[""id""], name=""b_idx"")),
    migrations.AddField(""a"", ""name"", models.IntegerField()),
]
}}}
I would expect to get the following 2 operations:
{{{
[
    migrations.AddIndex(""b"", models.Index(fields=[""id""], name=""b_idx"")),
    migrations.CreateModel(""A"", fields=[(""id"", models.BigAutoField()), (""name"", models.IntegerField())]),
]
}}}
Instead, I end up with the same set of operations.
"	New feature	assigned	Migrations	6.0	Normal		migrations		Unreviewed	0	0	0	0	0	0
