[1.7.x] Fixed #22853: Swapped models are now ignored for migration operations.