Skip to content

Commit

Permalink
PO-509 introduce configuration items for welsh language prefrences
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahamdennis authored and RustyHMCTS committed Jul 29, 2024
1 parent 30b130e commit 4d73a42
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 0 deletions.
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);
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
);

0 comments on commit 4d73a42

Please sign in to comment.