Fixed #23013 -- Fixed removing unique_together/index_together constraints in migrations.

Thanks melinath for the report.