mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
DBO changes
This commit is contained in:
parent
d345937ecc
commit
f022b5056d
@ -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
|
||||||
|
@ -25,7 +25,8 @@ BEGIN
|
|||||||
[LimitCollectionDeletion],
|
[LimitCollectionDeletion],
|
||||||
[AllowAdminAccessToAllCollectionItems],
|
[AllowAdminAccessToAllCollectionItems],
|
||||||
[UseRiskInsights],
|
[UseRiskInsights],
|
||||||
[LimitItemDeletion]
|
[LimitItemDeletion],
|
||||||
|
[UseOrganizationDomains]
|
||||||
FROM
|
FROM
|
||||||
[dbo].[Organization]
|
[dbo].[Organization]
|
||||||
END
|
END
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user