Fix up migration ordering.