Skip to content

Commit

Permalink
mrd case name updates (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
will-craig authored Oct 20, 2023
1 parent bb3e750 commit b5221e7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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);
SqlFileHelper.RunSqlFile("data/10181_update_mrd_case_type_names.sql", migrationBuilder);
}

protected override void Down(MigrationBuilder migrationBuilder)
Expand Down
13 changes: 0 additions & 13 deletions RefData/data/10181_update_family_law_case_type_names.sql

This file was deleted.

29 changes: 29 additions & 0 deletions RefData/data/10181_update_mrd_case_type_names.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
SET XACT_ABORT ON;
GO;

BEGIN TRANSACTION

--family
UPDATE Conference SET CaseType = 'Family Public Law' WHERE CaseType = 'Public Law - Care'
UPDATE Conference SET CaseType = 'Family Private Law' WHERE CaseType = 'Private Law'
--civil
UPDATE Conference SET CaseType = 'Specified Money Claims' WHERE CaseType = 'Civil Money Claims'
--tribunal
UPDATE Conference SET CaseType = 'Environment' WHERE CaseType = 'GRC - Environment'
UPDATE Conference SET CaseType = 'Estate Agents' WHERE CaseType = 'GRC - Estate Agents'
UPDATE Conference SET CaseType = 'Immigration Services' WHERE CaseType = 'GRC - Immigration Services'
UPDATE Conference SET CaseType = 'Gambling' WHERE CaseType = 'GRC - Gambling'
UPDATE Conference SET CaseType = 'Information Rights' WHERE CaseType = 'GRC - Information Rights'
UPDATE Conference SET CaseType = 'Transport' WHERE CaseType = 'GRC - DVSA'
UPDATE Conference SET CaseType = 'Community Right to Bid' WHERE CaseType = 'GRC - CRB'
UPDATE Conference SET CaseType = 'Food Safety' WHERE CaseType = 'GRC - Food'
UPDATE Conference SET CaseType = 'Pensions' WHERE CaseType = 'GRC - Pensions Regulation'
UPDATE Conference SET CaseType = 'Welfare of Animals' WHERE CaseType = 'GRC - Welfare of Animals'
UPDATE Conference SET CaseType = 'Social Security and Child Support' WHERE CaseType = 'SSCS Tribunal'
UPDATE Conference SET CaseType = 'Special Educational Needs' WHERE CaseType = 'Special Educational Needs and Disability'
UPDATE Conference SET CaseType = 'Tax Appeals' WHERE CaseType = 'Tax'
UPDATE Conference SET CaseType = 'Immigration and Asylum Appeals' WHERE CaseType = 'Immigration and Asylum'
UPDATE Conference SET CaseType = 'Employment Claims' WHERE CaseType = 'Employment Tribunal'
COMMIT
SET XACT_ABORT OFF
GO;

0 comments on commit b5221e7

Please sign in to comment.