generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PO-509 introduce configuration items for welsh language prefrences
- Loading branch information
1 parent
30b130e
commit 4d73a42
Showing
2 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/main/resources/db/migration/V20240729_224__tidyup_configuration_items.sql
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,16 @@ | ||
/** | ||
* OPAL Program | ||
* | ||
* MODULE : tidyup_configuration_items.sql | ||
* | ||
* DESCRIPTION : Tidy up the CONFIGURATION_ITEMS tables to remove the dummy data inserted during Discovery+. We now have actual data. | ||
* | ||
* VERSION HISTORY: | ||
* | ||
* Date Author Version Nature of Change | ||
* ---------- ------- -------- --------------------------------------------------------------------------------------------------------------------------- | ||
* 29/07/2024 A Dennis 1.0 PO-509 Tidy up the CONFIGURATION_ITEMS tables to remove the dummy data inserted during Discovery+. We now have actual data. | ||
* | ||
**/ | ||
DELETE FROM configuration_items | ||
WHERE configuration_item_id IN (500000001, 500000002, 500000003); |
149 changes: 149 additions & 0 deletions
149
src/main/resources/db/migration/V20240729_225__insert_language_configuration_items.sql
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,149 @@ | ||
/** | ||
* OPAL Program | ||
* | ||
* MODULE : insert_language_configuration_items.sql | ||
* | ||
* DESCRIPTION : Inserts rows of data into the CONFIGURATION_ITEMS table for Document and Hearing language. | ||
* | ||
* VERSION HISTORY: | ||
* | ||
* Date Author Version Nature of Change | ||
* ---------- ------- -------- --------------------------------------------------------------------------------------------------------- | ||
* 29/07/2024 A Dennis 1.0 PO-509 Inserts rows of data into the CONFIGURATION_ITEMS table for Document and Hearing language. | ||
* | ||
**/ | ||
INSERT INTO configuration_items | ||
( | ||
configuration_item_id | ||
,item_name | ||
,business_unit_id | ||
,item_value | ||
,item_values | ||
) | ||
VALUES | ||
( | ||
500000001 | ||
,'DEFAULT_DOCUMENT_LANGUAGE_PREFERENCE' | ||
,78 -- this is business unit for North Wales | ||
,'W' | ||
,NULL | ||
); | ||
|
||
INSERT INTO configuration_items | ||
( | ||
configuration_item_id | ||
,item_name | ||
,business_unit_id | ||
,item_value | ||
,item_values | ||
) | ||
VALUES | ||
( | ||
500000002 | ||
,'DEFAULT_HEARING_LANGUAGE_PREFERENCE' | ||
,78 | ||
,'W' | ||
,NULL | ||
); | ||
|
||
INSERT INTO configuration_items | ||
( | ||
configuration_item_id | ||
,item_name | ||
,business_unit_id | ||
,item_value | ||
,item_values | ||
) | ||
VALUES | ||
( | ||
500000003 | ||
,'DEFAULT_DOCUMENT_LANGUAGE_PREFERENCE' | ||
,58 -- this is business_unit for Gwent | ||
,'W' | ||
,NULL | ||
); | ||
|
||
INSERT INTO configuration_items | ||
( | ||
configuration_item_id | ||
,item_name | ||
,business_unit_id | ||
,item_value | ||
,item_values | ||
) | ||
VALUES | ||
( | ||
500000004 | ||
,'DEFAULT_HEARING_LANGUAGE_PREFERENCE' | ||
,58 | ||
,'W' | ||
,NULL | ||
); | ||
|
||
INSERT INTO configuration_items | ||
( | ||
configuration_item_id | ||
,item_name | ||
,business_unit_id | ||
,item_value | ||
,item_values | ||
) | ||
VALUES | ||
( | ||
500000005 | ||
,'DEFAULT_DOCUMENT_LANGUAGE_PREFERENCE' | ||
,53 -- this is business_unit for Dyfed Powys | ||
,'W' | ||
,NULL | ||
); | ||
|
||
INSERT INTO configuration_items | ||
( | ||
configuration_item_id | ||
,item_name | ||
,business_unit_id | ||
,item_value | ||
,item_values | ||
) | ||
VALUES | ||
( | ||
500000006 | ||
,'DEFAULT_HEARING_LANGUAGE_PREFERENCE' | ||
,53 | ||
,'W' | ||
,NULL | ||
); | ||
|
||
INSERT INTO configuration_items | ||
( | ||
configuration_item_id | ||
,item_name | ||
,business_unit_id | ||
,item_value | ||
,item_values | ||
) | ||
VALUES | ||
( | ||
500000007 | ||
,'DEFAULT_DOCUMENT_LANGUAGE_PREFERENCE' | ||
,85 -- this is business_unit for South Wales | ||
,'W' | ||
,NULL | ||
); | ||
|
||
INSERT INTO configuration_items | ||
( | ||
configuration_item_id | ||
,item_name | ||
,business_unit_id | ||
,item_value | ||
,item_values | ||
) | ||
VALUES | ||
( | ||
500000008 | ||
,'DEFAULT_HEARING_LANGUAGE_PREFERENCE' | ||
,85 | ||
,'W' | ||
,NULL | ||
); |