fixed bug in Migrations where version was not updated on downgrade in case of exception