1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-06 13:38:13 -05:00

delete folders too when purging

This commit is contained in:
Kyle Spearrin 2017-11-22 09:28:25 -05:00
parent e2cc0ce95a
commit 7bbf1623c7

View File

@ -22,6 +22,13 @@ BEGIN
COMMIT TRANSACTION Cipher_DeleteByUserId_Ciphers
END
-- Delete folders
DELETE
FROM
[dbo].[Folder]
WHERE
[UserId] = @UserId
-- Cleanup user
EXEC [dbo].[User_UpdateStorage] @UserId
EXEC [dbo].[User_BumpAccountRevisionDate] @UserId