mirror of
https://github.com/bitwarden/server
synced 2025-12-30 15:14:02 +00:00
reimport db after subvault => collection rename
This commit is contained in:
24
src/Sql/dbo/Stored Procedures/CollectionCipher_Create.sql
Normal file
24
src/Sql/dbo/Stored Procedures/CollectionCipher_Create.sql
Normal file
@@ -0,0 +1,24 @@
|
||||
CREATE PROCEDURE [dbo].[CollectionCipher_Create]
|
||||
@CollectionId UNIQUEIDENTIFIER,
|
||||
@CipherId UNIQUEIDENTIFIER
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
|
||||
INSERT INTO [dbo].[CollectionCipher]
|
||||
(
|
||||
[CollectionId],
|
||||
[CipherId]
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
@CollectionId,
|
||||
@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