flickerstreak@211: local _, addonTable = ... flickerstreak@211: local ReAction = addonTable.ReAction flickerstreak@211: flickerstreak@211: ReAction.PROFILEVERSION_LATEST = 1 flickerstreak@211: flickerstreak@211: function ReAction:UpdateDB() flickerstreak@211: local db = self.db flickerstreak@211: flickerstreak@211: if not db.profile.dbversion then flickerstreak@211: -- upgrade from legacy db to v1 flickerstreak@211: flickerstreak@211: -- (1) defaultBars table removed (pure cleanup, never used) flickerstreak@211: db.profile.defaultBars = nil flickerstreak@211: flickerstreak@211: -- (2) HideBlizzard is no longer a module flickerstreak@211: local hdb = db:RegisterNamespace("HideBlizzard") flickerstreak@211: if hdb then flickerstreak@211: db.profile.options.hideBlizzardBars = hdb.profile.hide flickerstreak@211: db.profile.options.hideBlizzardVehicleBar = hdb.profile.hideVehicle flickerstreak@211: hdb:ResetProfile() flickerstreak@211: end flickerstreak@211: flickerstreak@211: db.profile.dbversion = 1 flickerstreak@211: end flickerstreak@211: flickerstreak@211: db.profile.dbversion = self.PROFILEVERSION_LATEST flickerstreak@211: end