diff --git a/src/Sql/dbo/Stored Procedures/U2f_DeleteOld.sql b/src/Sql/dbo/Stored Procedures/U2f_DeleteOld.sql index c4658e07e1..aa8f0c6456 100644 --- a/src/Sql/dbo/Stored Procedures/U2f_DeleteOld.sql +++ b/src/Sql/dbo/Stored Procedures/U2f_DeleteOld.sql @@ -12,7 +12,8 @@ BEGIN FROM [dbo].[U2f] WHERE - [CreationDate] < @Threshold + [CreationDate] IS NULL + OR [CreationDate] < @Threshold SET @BatchSize = @@ROWCOUNT END diff --git a/util/Setup/DbScripts/2018-06-11_00_WebVaultUpdates.sql b/util/Setup/DbScripts/2018-06-11_00_WebVaultUpdates.sql index e45688e074..2b469e0a18 100644 --- a/util/Setup/DbScripts/2018-06-11_00_WebVaultUpdates.sql +++ b/util/Setup/DbScripts/2018-06-11_00_WebVaultUpdates.sql @@ -81,7 +81,8 @@ BEGIN FROM [dbo].[U2f] WHERE - [CreationDate] < @Threshold + [CreationDate] IS NULL + OR [CreationDate] < @Threshold SET @BatchSize = @@ROWCOUNT END