[1.7.x] Fixed #22470: Full migration support for order_with_respect_to