Skip to content

Commit 766149f

Browse files
committed
TD-5552-Moved general TEL team details to config table.
1 parent 53c8784 commit 766149f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

DigitalLearningSolutions.Data.Migrations/202508191440_CreateSendRetiringSelfAssessmentNotificationSP.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,25 @@ public class CreateSendRetiringSelfAssessmentNotificationSP : Migration
66
{
77
public override void Up()
88
{
9+
string generalTELTeam =
10+
@"[
11+
{ ""FirstName"":"""", ""LastName"":"""", ""Email"":""[email protected]"" },
12+
{ ""FirstName"":""Anna"", ""LastName"":""Athanasopoulou"", ""Email"":""[email protected]"" },
13+
{ ""FirstName"":""Benjamin"", ""LastName"":""Witton"", ""Email"":""[email protected]"" }
14+
]";
15+
16+
Execute.Sql(@$"IF NOT EXISTS (SELECT ConfigID FROM Config WHERE ConfigName = 'GeneralTELTeam')
17+
BEGIN
18+
INSERT INTO Config VALUES ('GeneralTELTeam', '{generalTELTeam}', 0,GETDATE(), GETDATE())
19+
END"
20+
);
21+
922
Execute.Sql(Properties.Resources.TD_5552_SendRetiringNotification);
1023
}
1124
public override void Down()
1225
{
26+
Execute.Sql(@"DELETE FROM Config WHERE ConfigName = N'GeneralTELTeam'");
27+
1328
Execute.Sql("DROP PROCEDURE [dbo].[SendRetiringSelfAssessmentNotification]");
1429
}
1530
}
Binary file not shown.

0 commit comments

Comments
 (0)