Use set -e whilst migrating, do migration in the correct order