fix migration, don't save schema if migration fail