Load Details Data Storage.

This commit is contained in:
andrew6180
2024-05-21 02:56:49 -07:00
parent 30cc9fc0a5
commit e311b21caa
3 changed files with 2 additions and 9 deletions
@@ -22,12 +22,9 @@ f:SetScript("OnEvent", function(self, event, addonName)
if (addonName == "Details_DataStorage") then
DetailsDataStorage = DetailsDataStorage or Details:CreateStorageDB()
DetailsDataStorage.Data = {}
print("loaded...")
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
print("is outdated")
--> do revisions
if (DetailsDataStorage.VERSION < 6) then
print("outdated two, data wiped!")
table.wipe(DetailsDataStorage)
DetailsDataStorage = Details:CreateStorageDB()
end