From f022b5056d0b5c9b8a3cb6d8a6c3ae30224fe815 Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 24 Mar 2025 12:13:35 -0400 Subject: [PATCH] DBO changes --- src/Sql/dbo/Stored Procedures/Organization_Create.sql | 3 ++- .../dbo/Stored Procedures/Organization_ReadAbilities.sql | 3 ++- src/Sql/dbo/Stored Procedures/Organization_Update.sql | 6 ++++-- src/Sql/dbo/Tables/Organization.sql | 1 + .../dbo/Views/OrganizationUserOrganizationDetailsView.sql | 3 ++- .../Views/ProviderUserProviderOrganizationDetailsView.sql | 3 ++- 6 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/Sql/dbo/Stored Procedures/Organization_Create.sql b/src/Sql/dbo/Stored Procedures/Organization_Create.sql index 25dfcf893d..5f158238cc 100644 --- a/src/Sql/dbo/Stored Procedures/Organization_Create.sql +++ b/src/Sql/dbo/Stored Procedures/Organization_Create.sql @@ -55,7 +55,8 @@ CREATE PROCEDURE [dbo].[Organization_Create] @LimitCollectionDeletion BIT = NULL, @AllowAdminAccessToAllCollectionItems BIT = 0, @UseRiskInsights BIT = 0, - @LimitItemDeletion BIT = 0 + @LimitItemDeletion BIT = 0, + @UseOrganizationDomains BIT = 0 AS BEGIN SET NOCOUNT ON diff --git a/src/Sql/dbo/Stored Procedures/Organization_ReadAbilities.sql b/src/Sql/dbo/Stored Procedures/Organization_ReadAbilities.sql index 49ee0f9c1c..630bc471aa 100644 --- a/src/Sql/dbo/Stored Procedures/Organization_ReadAbilities.sql +++ b/src/Sql/dbo/Stored Procedures/Organization_ReadAbilities.sql @@ -25,7 +25,8 @@ BEGIN [LimitCollectionDeletion], [AllowAdminAccessToAllCollectionItems], [UseRiskInsights], - [LimitItemDeletion] + [LimitItemDeletion], + [UseOrganizationDomains] FROM [dbo].[Organization] END diff --git a/src/Sql/dbo/Stored Procedures/Organization_Update.sql b/src/Sql/dbo/Stored Procedures/Organization_Update.sql index 6e9fe88f48..e0c8ca5e0b 100644 --- a/src/Sql/dbo/Stored Procedures/Organization_Update.sql +++ b/src/Sql/dbo/Stored Procedures/Organization_Update.sql @@ -55,7 +55,8 @@ CREATE PROCEDURE [dbo].[Organization_Update] @LimitCollectionDeletion BIT = null, @AllowAdminAccessToAllCollectionItems BIT = 0, @UseRiskInsights BIT = 0, - @LimitItemDeletion BIT = 0 + @LimitItemDeletion BIT = 0, + @UseOrganizationDomains BIT = 0 AS BEGIN SET NOCOUNT ON @@ -118,7 +119,8 @@ BEGIN [LimitCollectionDeletion] = @LimitCollectionDeletion, [AllowAdminAccessToAllCollectionItems] = @AllowAdminAccessToAllCollectionItems, [UseRiskInsights] = @UseRiskInsights, - [LimitItemDeletion] = @LimitItemDeletion + [LimitItemDeletion] = @LimitItemDeletion, + [UseOrganizationDomains] = @UseOrganizationDomains WHERE [Id] = @Id END diff --git a/src/Sql/dbo/Tables/Organization.sql b/src/Sql/dbo/Tables/Organization.sql index 6d10126972..90ce39b0a6 100644 --- a/src/Sql/dbo/Tables/Organization.sql +++ b/src/Sql/dbo/Tables/Organization.sql @@ -56,6 +56,7 @@ CREATE TABLE [dbo].[Organization] ( [LimitItemDeletion] BIT NOT NULL CONSTRAINT [DF_Organization_LimitItemDeletion] DEFAULT (0), [AllowAdminAccessToAllCollectionItems] BIT NOT NULL CONSTRAINT [DF_Organization_AllowAdminAccessToAllCollectionItems] 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) ); diff --git a/src/Sql/dbo/Views/OrganizationUserOrganizationDetailsView.sql b/src/Sql/dbo/Views/OrganizationUserOrganizationDetailsView.sql index 70c7413b75..64eb318bda 100644 --- a/src/Sql/dbo/Views/OrganizationUserOrganizationDetailsView.sql +++ b/src/Sql/dbo/Views/OrganizationUserOrganizationDetailsView.sql @@ -50,7 +50,8 @@ SELECT O.[LimitCollectionDeletion], O.[AllowAdminAccessToAllCollectionItems], O.[UseRiskInsights], - O.[LimitItemDeletion] + O.[LimitItemDeletion], + O.[UseOrganizationDomains] FROM [dbo].[OrganizationUser] OU LEFT JOIN diff --git a/src/Sql/dbo/Views/ProviderUserProviderOrganizationDetailsView.sql b/src/Sql/dbo/Views/ProviderUserProviderOrganizationDetailsView.sql index be6b6fdd0e..a38f21bda5 100644 --- a/src/Sql/dbo/Views/ProviderUserProviderOrganizationDetailsView.sql +++ b/src/Sql/dbo/Views/ProviderUserProviderOrganizationDetailsView.sql @@ -37,7 +37,8 @@ SELECT O.[AllowAdminAccessToAllCollectionItems], O.[UseRiskInsights], P.[Type] ProviderType, - O.[LimitItemDeletion] + O.[LimitItemDeletion], + O.[UseOrganizationDomains] FROM [dbo].[ProviderUser] PU INNER JOIN