only increment the version when upgrading was actually successful