updates order of migration