Changed migration script so that it throws error rather than dropping into PDB upon error