From 2c20f628c22756082342cfbce5ae9023ee78b262 Mon Sep 17 00:00:00 2001 From: benedwards Date: Wed, 29 Jan 2025 12:58:33 +0000 Subject: [PATCH 1/3] Populate retention_policy_type_heritage_mapping table --- ...retention_policy_type_heritage_mapping.sql | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/main/resources/db/migration/common/V1_434__populate_ retention_policy_type_heritage_mapping.sql diff --git a/src/main/resources/db/migration/common/V1_434__populate_ retention_policy_type_heritage_mapping.sql b/src/main/resources/db/migration/common/V1_434__populate_ retention_policy_type_heritage_mapping.sql new file mode 100644 index 0000000000..69d5e0568e --- /dev/null +++ b/src/main/resources/db/migration/common/V1_434__populate_ retention_policy_type_heritage_mapping.sql @@ -0,0 +1,33 @@ +insert into retention_policy_type_heritage_mapping (rhm_id, heritage_policy_name, heritage_table, modernised_rpt_id) +values (1, 'DARTS - Rollover Policy', 'moj_rps_retention_policy', 11), + (2, 'DARTS - 7 Years Retention Policy', 'moj_rps_retention_policy', 11), + (3, 'DARTS Rollover policy', 'moj_rps_retention_policy', 11), + (4, 'DARTS V2 - Rollover Policy', 'moj_rps_retention_policy', 11), + (5, 'DARTS - 30 Years Retention Policy', 'moj_rps_retention_policy', 10), + (6, 'DARTS - Standard Retention Policy', 'moj_rps_retention_policy', 11), + (7, 'DARTS - Permanent Policy', 'moj_rps_retention_policy', 10), + (8, 'DARTS Standard Retention', 'moj_rps_retention_policy', 11), + (9, 'DARTS V2 - Standard Retention Policy', 'moj_rps_retention_policy', 11), + (10, 'DARTS V2 - Permanent Retention Policy', 'moj_rps_retention_policy', 10), + (11, 'DARTS Permanent Retention', 'moj_rps_retention_policy', 10), + (12, 'DARTS Permanent Retention v3', 'moj_rps_retention_policy', 1), + (13, 'DARTS Standard Retention v3', 'moj_rps_retention_policy', 2), + (14, 'DARTS Not Guilty Policy', 'moj_rps_retention_policy', 3), + (15, 'DARTS Custodial Policy', 'moj_rps_retention_policy', 5), + (16, 'DARTS Non Custodial Policy', 'moj_rps_retention_policy', 4), + (17, 'DARTS Life Policy', 'moj_rps_retention_policy', 6), + (18, 'single space', 'moj_case', 7), + (19, 'null', 'moj_case', 7), + (20, 'NOT_GUILTY', 'moj_case', 3), + (21, 'CUSTODIAL', 'moj_case', 5), + (22, 'MANUAL', 'moj_case', 9), + (23, 'NON_CUSTODIAL', 'moj_case', 4), + (24, 'LIFE', 'moj_case', 6), + (25, 'PERM', 'moj_case', 8), + (26, 'single space', 'moj_case_retention_audit', 7), + (27, 'NOT_GUILTY', 'moj_case_retention_audit', 3), + (28, 'CUSTODIAL', 'moj_case_retention_audit', 5), + (29, 'MANUAL', 'moj_case_retention_audit', 9), + (30, 'NON_CUSTODIAL', 'moj_case_retention_audit', 4), + (31, 'LIFE', 'moj_case_retention_audit', 6), + (32, 'PERM', 'moj_case_retention_audit', 8); \ No newline at end of file From 01956f9395efbe38d80015df74ef51cea95ccfa8 Mon Sep 17 00:00:00 2001 From: Ben Edwards <147524406+Ben-Edwards-cgi@users.noreply.github.com> Date: Wed, 29 Jan 2025 17:15:11 +0000 Subject: [PATCH 2/3] Migration Rename --- ...1_435__populate_ retention_policy_type_heritage_mapping.sql} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/main/resources/db/migration/common/{V1_434__populate_ retention_policy_type_heritage_mapping.sql => V1_435__populate_ retention_policy_type_heritage_mapping.sql} (97%) diff --git a/src/main/resources/db/migration/common/V1_434__populate_ retention_policy_type_heritage_mapping.sql b/src/main/resources/db/migration/common/V1_435__populate_ retention_policy_type_heritage_mapping.sql similarity index 97% rename from src/main/resources/db/migration/common/V1_434__populate_ retention_policy_type_heritage_mapping.sql rename to src/main/resources/db/migration/common/V1_435__populate_ retention_policy_type_heritage_mapping.sql index 69d5e0568e..9941134395 100644 --- a/src/main/resources/db/migration/common/V1_434__populate_ retention_policy_type_heritage_mapping.sql +++ b/src/main/resources/db/migration/common/V1_435__populate_ retention_policy_type_heritage_mapping.sql @@ -30,4 +30,4 @@ values (1, 'DARTS - Rollover Policy', 'moj_rps_retention_policy', 11), (29, 'MANUAL', 'moj_case_retention_audit', 9), (30, 'NON_CUSTODIAL', 'moj_case_retention_audit', 4), (31, 'LIFE', 'moj_case_retention_audit', 6), - (32, 'PERM', 'moj_case_retention_audit', 8); \ No newline at end of file + (32, 'PERM', 'moj_case_retention_audit', 8); From 043805a91aa94eb0b6c1f40c8a737d811a661fce Mon Sep 17 00:00:00 2001 From: Ben Edwards <147524406+Ben-Edwards-cgi@users.noreply.github.com> Date: Fri, 31 Jan 2025 12:56:14 +0000 Subject: [PATCH 3/3] Rename V1_435__populate_ retention_policy_type_heritage_mapping.sql to V1_442__populate_ retention_policy_type_heritage_mapping.sql --- ... V1_442__populate_ retention_policy_type_heritage_mapping.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/main/resources/db/migration/common/{V1_435__populate_ retention_policy_type_heritage_mapping.sql => V1_442__populate_ retention_policy_type_heritage_mapping.sql} (100%) diff --git a/src/main/resources/db/migration/common/V1_435__populate_ retention_policy_type_heritage_mapping.sql b/src/main/resources/db/migration/common/V1_442__populate_ retention_policy_type_heritage_mapping.sql similarity index 100% rename from src/main/resources/db/migration/common/V1_435__populate_ retention_policy_type_heritage_mapping.sql rename to src/main/resources/db/migration/common/V1_442__populate_ retention_policy_type_heritage_mapping.sql