mirror of
https://github.com/bitwarden/server.git
synced 2025-06-19 18:38:03 -05:00
move index declarations to appropriate files
This commit is contained in:
parent
010833b8e0
commit
8957a032d2
@ -15,3 +15,8 @@ CREATE NONCLUSTERED INDEX IX_CollectionGroup_GroupId
|
|||||||
INCLUDE (ReadOnly, HidePasswords, Manage)
|
INCLUDE (ReadOnly, HidePasswords, Manage)
|
||||||
|
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
CREATE NONCLUSTERED INDEX IX_CollectionGroup_GroupId_ReadOnly
|
||||||
|
ON dbo.CollectionGroup (GroupId, ReadOnly)
|
||||||
|
INCLUDE (CollectionId);
|
||||||
|
GO
|
||||||
|
@ -15,3 +15,8 @@ CREATE NONCLUSTERED INDEX IX_CollectionUser_OrganizationUserId
|
|||||||
INCLUDE (ReadOnly, HidePasswords, Manage)
|
INCLUDE (ReadOnly, HidePasswords, Manage)
|
||||||
|
|
||||||
GO
|
GO
|
||||||
|
CREATE NONCLUSTERED INDEX IX_CollectionUser_OrganizationUserId_ReadOnly
|
||||||
|
ON dbo.CollectionUser (OrganizationUserId, ReadOnly)
|
||||||
|
INCLUDE (CollectionId);
|
||||||
|
|
||||||
|
GO
|
||||||
|
@ -87,19 +87,3 @@ BEGIN
|
|||||||
ORDER BY
|
ORDER BY
|
||||||
ST.CreationDate DESC;
|
ST.CreationDate DESC;
|
||||||
END
|
END
|
||||||
GO
|
|
||||||
|
|
||||||
CREATE NONCLUSTERED INDEX IX_CollectionGroup_GroupId_ReadOnly
|
|
||||||
ON dbo.CollectionGroup (GroupId, ReadOnly)
|
|
||||||
INCLUDE (CollectionId);
|
|
||||||
GO
|
|
||||||
|
|
||||||
CREATE NONCLUSTERED INDEX IX_CollectionUser_OrganizationUserId_ReadOnly
|
|
||||||
ON dbo.CollectionUser (OrganizationUserId, ReadOnly)
|
|
||||||
INCLUDE (CollectionId);
|
|
||||||
GO
|
|
||||||
|
|
||||||
CREATE NONCLUSTERED INDEX IX_SecurityTask_Status_OrgId_CreationDateDesc
|
|
||||||
ON dbo.SecurityTask (Status, OrganizationId, CreationDate DESC)
|
|
||||||
INCLUDE (CipherId, [Type], RevisionDate);
|
|
||||||
GO
|
|
||||||
|
@ -19,3 +19,8 @@ CREATE NONCLUSTERED INDEX [IX_SecurityTask_CipherId]
|
|||||||
GO
|
GO
|
||||||
CREATE NONCLUSTERED INDEX [IX_SecurityTask_OrganizationId]
|
CREATE NONCLUSTERED INDEX [IX_SecurityTask_OrganizationId]
|
||||||
ON [dbo].[SecurityTask]([OrganizationId] ASC) WHERE OrganizationId IS NOT NULL;
|
ON [dbo].[SecurityTask]([OrganizationId] ASC) WHERE OrganizationId IS NOT NULL;
|
||||||
|
|
||||||
|
CREATE NONCLUSTERED INDEX IX_SecurityTask_Status_OrgId_CreationDateDesc
|
||||||
|
ON dbo.SecurityTask (Status, OrganizationId, CreationDate DESC)
|
||||||
|
INCLUDE (CipherId, [Type], RevisionDate);
|
||||||
|
GO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user