mirror of
https://github.com/bitwarden/server
synced 2025-12-29 06:33:43 +00:00
reimport db after subvault => collection rename
This commit is contained in:
13
src/Sql/dbo/Tables/CollectionCipher.sql
Normal file
13
src/Sql/dbo/Tables/CollectionCipher.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE [dbo].[CollectionCipher] (
|
||||
[CollectionId] UNIQUEIDENTIFIER NOT NULL,
|
||||
[CipherId] UNIQUEIDENTIFIER NOT NULL,
|
||||
CONSTRAINT [PK_CollectionCipher] PRIMARY KEY CLUSTERED ([CollectionId] ASC, [CipherId] ASC),
|
||||
CONSTRAINT [FK_CollectionCipher_Cipher] FOREIGN KEY ([CipherId]) REFERENCES [dbo].[Cipher] ([Id]) ON DELETE CASCADE,
|
||||
CONSTRAINT [FK_CollectionCipher_Collection] FOREIGN KEY ([CollectionId]) REFERENCES [dbo].[Collection] ([Id]) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
|
||||
GO
|
||||
CREATE NONCLUSTERED INDEX [IX_CollectionCipher_CipherId]
|
||||
ON [dbo].[CollectionCipher]([CipherId] ASC);
|
||||
|
||||
Reference in New Issue
Block a user