diff --git a/src/Sql/dbo/Tables/Cipher.sql b/src/Sql/dbo/Tables/Cipher.sql index 52e4784509..719e147b09 100644 --- a/src/Sql/dbo/Tables/Cipher.sql +++ b/src/Sql/dbo/Tables/Cipher.sql @@ -43,10 +43,14 @@ BEGIN FROM INSERTED + DECLARE @UserId UNIQUEIDENTIFIER = (SELECT TOP 1 [UserId] FROM INSERTED) + UPDATE [User] SET [AccountRevisionDate] = GETUTCDATE() + WHERE + [Id] = @UserId END GO CREATE TRIGGER [dbo].[Cipher_Updated] @@ -73,10 +77,14 @@ BEGIN FROM INSERTED + DECLARE @UserId UNIQUEIDENTIFIER = (SELECT TOP 1 [UserId] FROM INSERTED) + UPDATE [User] SET [AccountRevisionDate] = GETUTCDATE() + WHERE + [Id] = @UserId END GO CREATE TRIGGER [dbo].[Cipher_Deleted] @@ -103,8 +111,12 @@ BEGIN FROM DELETED + DECLARE @UserId UNIQUEIDENTIFIER = (SELECT TOP 1 [UserId] FROM DELETED) + UPDATE [User] SET [AccountRevisionDate] = GETUTCDATE() + WHERE + [Id] = @UserId END \ No newline at end of file