mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
get cipher by org id index
This commit is contained in:
parent
053096c1a1
commit
f5c9672370
@ -20,3 +20,8 @@ CREATE NONCLUSTERED INDEX [IX_Cipher_UserId_OrganizationId_IncludeAll]
|
|||||||
ON [dbo].[Cipher]([UserId] ASC, [OrganizationId] ASC)
|
ON [dbo].[Cipher]([UserId] ASC, [OrganizationId] ASC)
|
||||||
INCLUDE ([Type], [Data], [Favorites], [Folders], [Attachments], [CreationDate], [RevisionDate]);
|
INCLUDE ([Type], [Data], [Favorites], [Folders], [Attachments], [CreationDate], [RevisionDate]);
|
||||||
|
|
||||||
|
|
||||||
|
GO
|
||||||
|
CREATE NONCLUSTERED INDEX [IX_Cipher_OrganizationId]
|
||||||
|
ON [dbo].[Cipher]([OrganizationId] ASC);
|
||||||
|
|
||||||
|
@ -134,6 +134,16 @@ BEGIN
|
|||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
IF NOT EXISTS (
|
||||||
|
SELECT * FROM sys.indexes WHERE [Name]='IX_Cipher_OrganizationId'
|
||||||
|
AND object_id = OBJECT_ID('[dbo].[Cipher]')
|
||||||
|
)
|
||||||
|
BEGIN
|
||||||
|
CREATE NONCLUSTERED INDEX [IX_Cipher_OrganizationId]
|
||||||
|
ON [dbo].[Cipher]([OrganizationId] ASC)
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
IF NOT EXISTS (
|
IF NOT EXISTS (
|
||||||
SELECT * FROM sys.indexes WHERE [Name]='IX_GroupUser_OrganizationUserId'
|
SELECT * FROM sys.indexes WHERE [Name]='IX_GroupUser_OrganizationUserId'
|
||||||
AND object_id = OBJECT_ID('[dbo].[GroupUser]')
|
AND object_id = OBJECT_ID('[dbo].[GroupUser]')
|
||||||
|
Loading…
Reference in New Issue
Block a user