Skip to content

Commit

Permalink
Fix referral migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Top-Cat committed Nov 11, 2024
1 parent e678779 commit 85c29af
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ protected override void Up(MigrationBuilder migrationBuilder)
migrationBuilder.Sql("""
IF NOT EXISTS (SELECT * FROM Statuses)
BEGIN
INSERT INTO Statuses (Id, Name, SortOrder, SecondrySortOrder) VALUES
(1, 'New', 0, 1),
(2, 'Opened', 1, 1),
(3, 'Accepted', 2, 2),
(4, 'Declined', 3, 0);
INSERT INTO Statuses (Id, Name, SortOrder, SecondrySortOrder, Created, CreatedBy) VALUES
(1, 'New', 0, 1, getutcdate(), 'SYSTEM'),
(2, 'Opened', 1, 1, getutcdate(), 'SYSTEM'),
(3, 'Accepted', 2, 2, getutcdate(), 'SYSTEM'),
(4, 'Declined', 3, 0, getutcdate(), 'SYSTEM');
END;
""");

migrationBuilder.Sql("""
IF NOT EXISTS (SELECT * FROM Roles)
BEGIN
INSERT INTO Roles (Id, Name, Description) VALUES
(1, 'DfeAdmin', 'DfE Administrator'),
(2, 'LaManager', 'Local Authority Manager'),
(3, 'VcsManager', 'VCS Manager'),
(4, 'LaProfessional', 'Local Authority Professional'),
(5, 'VcsProfessional', 'VCS Professional'),
(6, 'LaDualRole', 'Local Authority Dual Role'),
(7, 'VcsDualRole', 'VCS Dual Role');
INSERT INTO Roles (Id, Name, Description, Created, CreatedBy) VALUES
(1, 'DfeAdmin', 'DfE Administrator', getutcdate(), 'SYSTEM'),
(2, 'LaManager', 'Local Authority Manager', getutcdate(), 'SYSTEM'),
(3, 'VcsManager', 'VCS Manager', getutcdate(), 'SYSTEM'),
(4, 'LaProfessional', 'Local Authority Professional', getutcdate(), 'SYSTEM'),
(5, 'VcsProfessional', 'VCS Professional', getutcdate(), 'SYSTEM'),
(6, 'LaDualRole', 'Local Authority Dual Role', getutcdate(), 'SYSTEM'),
(7, 'VcsDualRole', 'VCS Dual Role', getutcdate(), 'SYSTEM');
END;
""");
}
Expand Down

0 comments on commit 85c29af

Please sign in to comment.