diff --git a/src/Sql/dbo/Stored Procedures/Cipher_Restore.sql b/src/Sql/dbo/Stored Procedures/Cipher_Restore.sql index 9480e82f42..ab646b46ce 100644 --- a/src/Sql/dbo/Stored Procedures/Cipher_Restore.sql +++ b/src/Sql/dbo/Stored Procedures/Cipher_Restore.sql @@ -23,8 +23,7 @@ BEGIN [Edit] = 1 AND [Id] IN (SELECT * FROM @Ids) - DECLARE @UtcNow DATETIME2(7); - SET @UtcNow = GETUTCDATE(); + DECLARE @UtcNow DATETIME2(7) = GETUTCDATE(); UPDATE [dbo].[Cipher] SET diff --git a/util/Migrator/DbScripts/2020-04-02_00_CipherSoftDelete.sql b/util/Migrator/DbScripts/2020-04-02_00_CipherSoftDelete.sql index 01ec1fb341..af5c1537f7 100644 --- a/util/Migrator/DbScripts/2020-04-02_00_CipherSoftDelete.sql +++ b/util/Migrator/DbScripts/2020-04-02_00_CipherSoftDelete.sql @@ -31,8 +31,7 @@ BEGIN [Edit] = 1 AND [Id] IN (SELECT * FROM @Ids) - DECLARE @UtcNow DATETIME2(7); - SET @UtcNow = GETUTCDATE(); + DECLARE @UtcNow DATETIME2(7) = GETUTCDATE(); UPDATE [dbo].[Cipher] SET @@ -99,8 +98,7 @@ BEGIN AND [Id] IN (SELECT * FROM @Ids) -- Delete ciphers - DECLARE @UtcNow DATETIME2(7); - SET @UtcNow = GETUTCDATE(); + DECLARE @UtcNow DATETIME2(7) = GETUTCDATE(); UPDATE [dbo].[Cipher] SET