generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DMP-3541: Populate retention_confidence_category_mapper table
- Loading branch information
1 parent
9065123
commit b234573
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...n/resources/db/migration/common/V1_442__populate_retention_confidence_category_mapper.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,24 @@ | ||
INSERT INTO retention_confidence_category_mapper (rcc_id, confidence_category, ret_conf_score, ret_conf_reason, description, created_ts, created_by, last_modified_ts, last_modified_by) | ||
VALUES | ||
(1, 1, 0, 'CASE_CLOSED', 'Case Close Event', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(2, 2, 0, 'MANUAL_OVERRIDE', 'Manual Override', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(3, 3, 1, 'AGED_CASE', 'Aged Case', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(4, 21, 0, 'MANUAL_OVERRIDE', 'Manual Overrides - MANUAL and CUSTODIAL. Must be closed using case closed event_ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(5, 22, 0, 'MANUAL_OVERRIDE', 'Manual Overrides - PERMANENT. Must be closed using case closed event_ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(6, 23, 0, 'CASE_CLOSED', 'Variable Retention - COMPLETED. Must be closed using case closed event_ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(7, 42, 0, 'CASE_CLOSED', 'Variable Retention - READY outside of grace period. Must be closed using case closed event_ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(8, 43, 0, 'CASE_CLOSED', 'RCC not set by migration', CURRENT_TIMESTAMP, 1, CURRENT_TIMESTAMP, 0), | ||
(9, 31, 0, 'CASE_CLOSED', 'Retainers Created Pre Variable Retention. Closed using case closed event_ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(10, 32, 1, 'MAX_EVENT_CLOSED', 'Retainers Created Pre Variable Retention. Closed using max event ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(11, 33, 1, 'MAX_MEDIA_CLOSED', 'Retainers Created Pre Variable Retention. Closed using max media ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(12, 34, 1, 'CASE_CREATION_CLOSED', 'Retainers Created Pre Variable Retention. Closed using case creation ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(13, 11, 0, 'CASE_CLOSED', 'Catch-up Clean-up. Closed using case closed event_ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(14, 12, 1, 'MAX_EVENT_CLOSED', 'Catch-up Clean-up. Closed using max event ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(15, 13, 1, 'MAX_MEDIA_CLOSED', 'Catch-up Clean-up. Closed using max media ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(16, 14, 1, 'CASE_CREATION_CLOSED', 'Catch-up Clean-up. Closed using case creation ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(17, 61, 0, 'CASE_CLOSED', 'Aged Cases. Closed using case closed event_ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(18, 62, 1, 'MAX_EVENT_CLOSED', 'Aged Cases. Closed using max event ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(19, 63, 1, 'MAX_MEDIA_CLOSED', 'Aged Cases. Closed using max media ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0), | ||
(20, 64, 1, 'CASE_CREATION_CLOSED', 'Aged Cases. Closed using case creation ts', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0); | ||
|
||
ALTER SEQUENCE rcc_seq RESTART WITH 100; |