From d8c93954b734b21d62f7f0cb99b9a66cfb016a25 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Wed, 2 Apr 2025 12:19:07 +0200 Subject: [PATCH] Fix migration --- .../DbScripts/2025-04-02_00_Remove_Inactive_Device_Keys.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/Migrator/DbScripts/2025-04-02_00_Remove_Inactive_Device_Keys.sql b/util/Migrator/DbScripts/2025-04-02_00_Remove_Inactive_Device_Keys.sql index c6fff1f83d..612da126b2 100644 --- a/util/Migrator/DbScripts/2025-04-02_00_Remove_Inactive_Device_Keys.sql +++ b/util/Migrator/DbScripts/2025-04-02_00_Remove_Inactive_Device_Keys.sql @@ -3,7 +3,7 @@ SET EncryptedUserKey = NULL, EncryptedPublicKey = NULL, EncryptedPrivateKey = NULL -WHERE Active = 1 +WHERE Active = 0 AND ( EncryptedUserKey IS NOT NULL OR EncryptedPublicKey IS NOT NULL OR