mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 23:34:53 -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
|
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 collection users
|
||||||
DELETE
|
DELETE
|
||||||
CU
|
CU
|
||||||
|
Loading…
x
Reference in New Issue
Block a user