From 841dec3fef8785ad1b026df4361c916b1e6c1abe Mon Sep 17 00:00:00 2001
From: MrKevJoy <60096576+MrKevJoy@users.noreply.github.com>
Date: Tue, 17 Oct 2023 11:12:13 +0100
Subject: [PATCH] Fix casing on High Potential ITT programme type in reporting
db (#865)
---
.../DqtReporting/Migrations/0012_FixProgrammeTypeCasing.sql | 4 ++++
.../TeachingRecordSystem.Core.csproj | 2 ++
2 files changed, 6 insertions(+)
create mode 100644 TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrations/0012_FixProgrammeTypeCasing.sql
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrations/0012_FixProgrammeTypeCasing.sql b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrations/0012_FixProgrammeTypeCasing.sql
new file mode 100644
index 000000000..47535ab54
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Services/DqtReporting/Migrations/0012_FixProgrammeTypeCasing.sql
@@ -0,0 +1,4 @@
+IF EXISTS (select 1 from information_schema.tables where table_name = 'GlobalOptionSetMetadata')
+BEGIN
+ update [dbo].[GlobalOptionSetMetadata] set LocalizedLabel = 'High potential ITT' where [Option] = 389040024 AND OptionSetName = 'dfeta_programmetype';
+END
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/TeachingRecordSystem.Core.csproj b/TeachingRecordSystem/src/TeachingRecordSystem.Core/TeachingRecordSystem.Core.csproj
index 996b61ba6..4c05849ea 100644
--- a/TeachingRecordSystem/src/TeachingRecordSystem.Core/TeachingRecordSystem.Core.csproj
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/TeachingRecordSystem.Core.csproj
@@ -18,6 +18,7 @@
+
@@ -32,6 +33,7 @@
+