correct migration order