./scripts/migrate returns 1 on error