Fixed #23474 -- Schema migrations can inadvertently destroy data

Changed MigrationExecutor.migration_plan to not unapply migrations
that it shouldn't be unapplying by passing the subsequent migration
of `target` to MigrationGraphy.backwards_plan, rather than `target`.