mirror of
https://github.com/bitwarden/server
synced 2026-01-20 09:23:28 +00:00
reimport db after subvault => collection rename
This commit is contained in:
20
src/Sql/dbo/Stored Procedures/CollectionCipher_Delete.sql
Normal file
20
src/Sql/dbo/Stored Procedures/CollectionCipher_Delete.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
CREATE PROCEDURE [dbo].[CollectionCipher_Delete]
|
||||
@CollectionId UNIQUEIDENTIFIER,
|
||||
@CipherId UNIQUEIDENTIFIER
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
DELETE
|
||||
FROM
|
||||
[dbo].[CollectionCipher]
|
||||
WHERE
|
||||
[CollectionId] = @CollectionId
|
||||
AND [CipherId] = @CipherId
|
||||
|
||||
DECLARE @OrganizationId UNIQUEIDENTIFIER = (SELECT TOP 1 [OrganizationId] FROM [dbo].[Cipher] WHERE [Id] = @CipherId)
|
||||
IF @OrganizationId IS NOT NULL
|
||||
BEGIN
|
||||
EXEC [dbo].[User_BumpAccountRevisionDateByOrganizationId] @OrganizationId
|
||||
END
|
||||
END
|
||||
Reference in New Issue
Block a user