1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

delete sso config when deleting org (#904)

* delete ssouser on org and user delete

* delete sso config when deleting org
This commit is contained in:
Kyle Spearrin
2020-09-02 10:48:15 -04:00
committed by GitHub
parent 47224913d4
commit 8510a753a8
2 changed files with 64 additions and 0 deletions

View File

@ -23,15 +23,25 @@ BEGIN
COMMIT TRANSACTION Organization_DeleteById_Ciphers
END
BEGIN TRANSACTION Organization_DeleteById
DELETE
FROM
[dbo].[SsoUser]
WHERE
[OrganizationId] = @Id
DELETE
FROM
[dbo].[SsoConfig]
WHERE
[OrganizationId] = @Id
DELETE
FROM
[dbo].[Organization]
WHERE
[Id] = @Id
COMMIT TRANSACTION Organization_DeleteById
END