-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref data script and migration for mrd (#610)
- Loading branch information
1 parent
645c7ba
commit bb3e750
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
RefData/Migrations/20231016150635_update_family_law_case_names.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
RefData/Migrations/20231016150635_update_family_law_case_names.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace RefData.Migrations | ||
{ | ||
public partial class update_family_law_case_names : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
SqlFileHelper.RunSqlFile("data/10181_update_family_law_case_type_names.sql", migrationBuilder); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SET XACT_ABORT ON; | ||
GO; | ||
|
||
BEGIN TRANSACTION | ||
|
||
UPDATE Conference SET CaseType = 'Family Public Law' WHERE CaseType = 'Public Law - Care' | ||
UPDATE Conference SET CaseType = 'Family Private Law' WHERE CaseType = 'Private Law' | ||
|
||
SELECT * FROM Conference WHERE CaseType = 'Family Public Law' OR CaseType = 'Family Private Law' | ||
|
||
COMMIT | ||
SET XACT_ABORT OFF | ||
GO; |