Fixed #23410 -- Avoid unnecessary rollbacks in related apps when migrating backwards.

We usually add new fixes at the bottom of the list.