From ca728652f32f488d312a3d8dbf43173f1271c01a Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Thu, 29 Aug 2024 19:40:53 -0500 Subject: [PATCH] [ODS-6408] Upgrading the Security DB creates a now deprecated ResourceClaim (#1130) --- .../MsSql/Data/Security/0001-ResourceClaimMetadata.sql | 4 ++-- .../PgSql/Data/Security/0001-ResourceClaimMetadata.sql | 4 ++-- .../MsSql/Data/Security/0001-ResourceClaimMetadata.sql | 4 ++-- .../PgSql/Data/Security/0001-ResourceClaimMetadata.sql | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Data/Security/0001-ResourceClaimMetadata.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Data/Security/0001-ResourceClaimMetadata.sql index 78b9a504d6..d9df1253f7 100644 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Data/Security/0001-ResourceClaimMetadata.sql +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/MsSql/Data/Security/0001-ResourceClaimMetadata.sql @@ -190,10 +190,10 @@ BEGIN VALUES (N'assessmentMetadata', N'http://ed-fi.org/ods/identity/claims/domains/assessmentMetadata', NULL); END -IF NOT EXISTS (SELECT 1 FROM [dbo].[ResourceClaims] WHERE [ClaimName] = 'http://ed-fi.org/ods/identity/claims/domains/identity' ) +IF NOT EXISTS (SELECT 1 FROM [dbo].[ResourceClaims] WHERE [ClaimName] = 'http://ed-fi.org/ods/identity/claims/services/identity' ) BEGIN INSERT [dbo].[ResourceClaims] ( [ResourceName], [ClaimName], [ParentResourceClaimId]) - VALUES (N'identity', N'http://ed-fi.org/ods/identity/claims/domains/identity', NULL); + VALUES (N'identity', N'http://ed-fi.org/ods/identity/claims/services/identity', NULL); END IF NOT EXISTS (SELECT 1 FROM [dbo].[ResourceClaims] WHERE [ClaimName] = 'http://ed-fi.org/ods/identity/claims/domains/educationStandards' ) diff --git a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Data/Security/0001-ResourceClaimMetadata.sql b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Data/Security/0001-ResourceClaimMetadata.sql index 6efab722b5..cf81b35684 100644 --- a/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Data/Security/0001-ResourceClaimMetadata.sql +++ b/Application/EdFi.Ods.Standard/Standard/4.0.0/Artifacts/PgSql/Data/Security/0001-ResourceClaimMetadata.sql @@ -173,9 +173,9 @@ begin VALUES ('assessmentMetadata', 'http://ed-fi.org/ods/identity/claims/domains/assessmentMetadata', null); END IF; - IF NOT EXISTS(SELECT 1 FROM dbo.ResourceClaims WHERE ClaimName ='http://ed-fi.org/ods/identity/claims/domains/identity') THEN + IF NOT EXISTS(SELECT 1 FROM dbo.ResourceClaims WHERE ClaimName ='http://ed-fi.org/ods/identity/claims/services/identity') THEN insert into dbo.ResourceClaims (ResourceName, ClaimName, ParentResourceClaimId) - values ('identity', 'http://ed-fi.org/ods/identity/claims/domains/identity', null); + values ('identity', 'http://ed-fi.org/ods/identity/claims/services/identity', null); END IF; IF NOT EXISTS(SELECT 1 FROM dbo.ResourceClaims WHERE ClaimName ='http://ed-fi.org/ods/identity/claims/domains/educationStandards') THEN diff --git a/Application/EdFi.Ods.Standard/Standard/5.1.0/Artifacts/MsSql/Data/Security/0001-ResourceClaimMetadata.sql b/Application/EdFi.Ods.Standard/Standard/5.1.0/Artifacts/MsSql/Data/Security/0001-ResourceClaimMetadata.sql index 6a2d0d0986..8452afc8b8 100644 --- a/Application/EdFi.Ods.Standard/Standard/5.1.0/Artifacts/MsSql/Data/Security/0001-ResourceClaimMetadata.sql +++ b/Application/EdFi.Ods.Standard/Standard/5.1.0/Artifacts/MsSql/Data/Security/0001-ResourceClaimMetadata.sql @@ -191,10 +191,10 @@ BEGIN VALUES (N'assessmentMetadata', N'http://ed-fi.org/ods/identity/claims/domains/assessmentMetadata', NULL); END -IF NOT EXISTS (SELECT 1 FROM [dbo].[ResourceClaims] WHERE [ClaimName] = 'http://ed-fi.org/ods/identity/claims/domains/identity') +IF NOT EXISTS (SELECT 1 FROM [dbo].[ResourceClaims] WHERE [ClaimName] = 'http://ed-fi.org/ods/identity/claims/services/identity') BEGIN INSERT [dbo].[ResourceClaims] ([ResourceName], [ClaimName], [ParentResourceClaimId]) - VALUES (N'identity', N'http://ed-fi.org/ods/identity/claims/domains/identity', NULL); + VALUES (N'identity', N'http://ed-fi.org/ods/identity/claims/services/identity', NULL); END IF NOT EXISTS (SELECT 1 FROM [dbo].[ResourceClaims] WHERE [ClaimName] = 'http://ed-fi.org/ods/identity/claims/domains/educationStandards') diff --git a/Application/EdFi.Ods.Standard/Standard/5.1.0/Artifacts/PgSql/Data/Security/0001-ResourceClaimMetadata.sql b/Application/EdFi.Ods.Standard/Standard/5.1.0/Artifacts/PgSql/Data/Security/0001-ResourceClaimMetadata.sql index b965b22f6b..21e51fa1ce 100644 --- a/Application/EdFi.Ods.Standard/Standard/5.1.0/Artifacts/PgSql/Data/Security/0001-ResourceClaimMetadata.sql +++ b/Application/EdFi.Ods.Standard/Standard/5.1.0/Artifacts/PgSql/Data/Security/0001-ResourceClaimMetadata.sql @@ -176,9 +176,9 @@ begin VALUES ('assessmentMetadata', 'http://ed-fi.org/ods/identity/claims/domains/assessmentMetadata', null); END IF; - IF NOT EXISTS(SELECT 1 FROM dbo.ResourceClaims WHERE ClaimName ='http://ed-fi.org/ods/identity/claims/domains/identity') THEN + IF NOT EXISTS(SELECT 1 FROM dbo.ResourceClaims WHERE ClaimName ='http://ed-fi.org/ods/identity/claims/services/identity') THEN insert into dbo.ResourceClaims (ResourceName, ClaimName, ParentResourceClaimId) - values ('identity', 'http://ed-fi.org/ods/identity/claims/domains/identity', null); + values ('identity', 'http://ed-fi.org/ods/identity/claims/services/identity', null); END IF; IF NOT EXISTS(SELECT 1 FROM dbo.ResourceClaims WHERE ClaimName ='http://ed-fi.org/ods/identity/claims/domains/educationStandards') THEN