Fixed #23983 - Fixed a crash in migration when adding `order_with_respect_to` to non-empty table