From 1bc1d5400ae2e65f4d69f79373c831e091e77eb4 Mon Sep 17 00:00:00 2001 From: Vollmer Date: Mon, 9 Sep 2024 17:08:41 +0200 Subject: [PATCH] only create backups for newer version to prevent overwrites on version rollbacks --- Data/DBUtil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/DBUtil.lua b/Data/DBUtil.lua index 75d01bc..92adb84 100644 --- a/Data/DBUtil.lua +++ b/Data/DBUtil.lua @@ -119,7 +119,7 @@ end --- C) Prevent data loss due to a bug function DB.CreateAutomaticBackup() if not CUF_DB.version -- First time addon is loaded, nothing to backup - or (CUF_DB.backups.automatic and CUF_DB.backups.automatic.CUFVersion == CUF.version) then + or (CUF_DB.backups.automatic and CUF_DB.backups.automatic.CUFVersion >= CUF.version) then return end