1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

DBO changes

This commit is contained in:
Brandon 2025-03-24 12:13:35 -04:00
parent d345937ecc
commit f022b5056d
No known key found for this signature in database
GPG Key ID: A0E0EF0B207BA40D
6 changed files with 13 additions and 6 deletions

View File

@ -55,7 +55,8 @@ CREATE PROCEDURE [dbo].[Organization_Create]
@LimitCollectionDeletion BIT = NULL, @LimitCollectionDeletion BIT = NULL,
@AllowAdminAccessToAllCollectionItems BIT = 0, @AllowAdminAccessToAllCollectionItems BIT = 0,
@UseRiskInsights BIT = 0, @UseRiskInsights BIT = 0,
@LimitItemDeletion BIT = 0 @LimitItemDeletion BIT = 0,
@UseOrganizationDomains BIT = 0
AS AS
BEGIN BEGIN
SET NOCOUNT ON SET NOCOUNT ON

View File

@ -25,7 +25,8 @@ BEGIN
[LimitCollectionDeletion], [LimitCollectionDeletion],
[AllowAdminAccessToAllCollectionItems], [AllowAdminAccessToAllCollectionItems],
[UseRiskInsights], [UseRiskInsights],
[LimitItemDeletion] [LimitItemDeletion],
[UseOrganizationDomains]
FROM FROM
[dbo].[Organization] [dbo].[Organization]
END END

View File

@ -55,7 +55,8 @@ CREATE PROCEDURE [dbo].[Organization_Update]
@LimitCollectionDeletion BIT = null, @LimitCollectionDeletion BIT = null,
@AllowAdminAccessToAllCollectionItems BIT = 0, @AllowAdminAccessToAllCollectionItems BIT = 0,
@UseRiskInsights BIT = 0, @UseRiskInsights BIT = 0,
@LimitItemDeletion BIT = 0 @LimitItemDeletion BIT = 0,
@UseOrganizationDomains BIT = 0
AS AS
BEGIN BEGIN
SET NOCOUNT ON SET NOCOUNT ON
@ -118,7 +119,8 @@ BEGIN
[LimitCollectionDeletion] = @LimitCollectionDeletion, [LimitCollectionDeletion] = @LimitCollectionDeletion,
[AllowAdminAccessToAllCollectionItems] = @AllowAdminAccessToAllCollectionItems, [AllowAdminAccessToAllCollectionItems] = @AllowAdminAccessToAllCollectionItems,
[UseRiskInsights] = @UseRiskInsights, [UseRiskInsights] = @UseRiskInsights,
[LimitItemDeletion] = @LimitItemDeletion [LimitItemDeletion] = @LimitItemDeletion,
[UseOrganizationDomains] = @UseOrganizationDomains
WHERE WHERE
[Id] = @Id [Id] = @Id
END END

View File

@ -56,6 +56,7 @@ CREATE TABLE [dbo].[Organization] (
[LimitItemDeletion] BIT NOT NULL CONSTRAINT [DF_Organization_LimitItemDeletion] DEFAULT (0), [LimitItemDeletion] BIT NOT NULL CONSTRAINT [DF_Organization_LimitItemDeletion] DEFAULT (0),
[AllowAdminAccessToAllCollectionItems] BIT NOT NULL CONSTRAINT [DF_Organization_AllowAdminAccessToAllCollectionItems] DEFAULT (0), [AllowAdminAccessToAllCollectionItems] BIT NOT NULL CONSTRAINT [DF_Organization_AllowAdminAccessToAllCollectionItems] DEFAULT (0),
[UseRiskInsights] BIT NOT NULL CONSTRAINT [DF_Organization_UseRiskInsights] DEFAULT (0), [UseRiskInsights] BIT NOT NULL CONSTRAINT [DF_Organization_UseRiskInsights] DEFAULT (0),
[UseOrganizationDomains] BIT NOT NULL CONSTRAINT [DF_Organization_UseOrganizationDomains] DEFAULT (0),
CONSTRAINT [PK_Organization] PRIMARY KEY CLUSTERED ([Id] ASC) CONSTRAINT [PK_Organization] PRIMARY KEY CLUSTERED ([Id] ASC)
); );

View File

@ -50,7 +50,8 @@ SELECT
O.[LimitCollectionDeletion], O.[LimitCollectionDeletion],
O.[AllowAdminAccessToAllCollectionItems], O.[AllowAdminAccessToAllCollectionItems],
O.[UseRiskInsights], O.[UseRiskInsights],
O.[LimitItemDeletion] O.[LimitItemDeletion],
O.[UseOrganizationDomains]
FROM FROM
[dbo].[OrganizationUser] OU [dbo].[OrganizationUser] OU
LEFT JOIN LEFT JOIN

View File

@ -37,7 +37,8 @@ SELECT
O.[AllowAdminAccessToAllCollectionItems], O.[AllowAdminAccessToAllCollectionItems],
O.[UseRiskInsights], O.[UseRiskInsights],
P.[Type] ProviderType, P.[Type] ProviderType,
O.[LimitItemDeletion] O.[LimitItemDeletion],
O.[UseOrganizationDomains]
FROM FROM
[dbo].[ProviderUser] PU [dbo].[ProviderUser] PU
INNER JOIN INNER JOIN