Fixed #23014 -- Infinite migration regression with unique/index_together.