mirror of
https://github.com/bitwarden/server.git
synced 2025-05-28 14:54:50 -05:00
delete more FK dependencies when user delete
This commit is contained in:
parent
23467b7771
commit
1c2c892bcd
@ -24,6 +24,20 @@ BEGIN
|
||||
|
||||
BEGIN TRANSACTION User_DeleteById
|
||||
|
||||
-- Delete folders
|
||||
DELETE
|
||||
FROM
|
||||
[dbo].[Folder]
|
||||
WHERE
|
||||
[UserId] = @Id
|
||||
|
||||
-- Delete devices
|
||||
DELETE
|
||||
FROM
|
||||
[dbo].[Device]
|
||||
WHERE
|
||||
[UserId] = @Id
|
||||
|
||||
-- Delete collection users
|
||||
DELETE
|
||||
CU
|
||||
|
Loading…
x
Reference in New Issue
Block a user