Complete commands for pending migration
Calculate migration path