From 859e6af06dcae39e48d04b1ff3a971f21a6fd667 Mon Sep 17 00:00:00 2001
From: MrKevJoy <60096576+MrKevJoy@users.noreply.github.com>
Date: Mon, 16 Oct 2023 16:37:55 +0100
Subject: [PATCH] Add script to add missing metadata for High Potential ITT to
reporting db (#861)
---
.../Migrations/0011_AddHighProfileProgrammeType.sql | 4 ++++
.../TeachingRecordSystem.Core.csproj | 2 ++
2 files changed, 6 insertions(+)
create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrations/0011_AddHighProfileProgrammeType.sql
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrations/0011_AddHighProfileProgrammeType.sql b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrations/0011_AddHighProfileProgrammeType.sql
new file mode 100644
index 000000000..3d9ae7a40
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrations/0011_AddHighProfileProgrammeType.sql
@@ -0,0 +1,4 @@
+IF EXISTS (select 1 from information_schema.tables where table_name = 'GlobalOptionSetMetadata')
+BEGIN
+ INSERT INTO [dbo].[GlobalOptionSetMetadata](OptionSetName,[Option],IsUserLocalizedLabel,LocalizedLabelLanguageCode,LocalizedLabel) values('dfeta_programmetype',389040024,0,1033,'high potential ITT');
+END
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/TeachingRecordSystem.Core.csproj b/TeachingRecordSystem/src/TeachingRecordSystem.Core/TeachingRecordSystem.Core.csproj
index 143c440e6..996b61ba6 100644
--- a/TeachingRecordSystem/src/TeachingRecordSystem.Core/TeachingRecordSystem.Core.csproj
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/TeachingRecordSystem.Core.csproj
@@ -17,6 +17,7 @@
+
@@ -30,6 +31,7 @@
+