Fixed #22125 - eliminate redundant index generation for unique-together