[migrations] Fix migration order.