From d53f37dd67b4631d6d9f8116e11eb5e137f53596 Mon Sep 17 00:00:00 2001 From: gregorylavery <100631366+gregorylavery@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:39:28 -0700 Subject: [PATCH] feat: Adds option for 'Duplicate' to 'Justification' dropdown (#70) --- migrations/sql/R__code-table-data.sql.sql | 46 +++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 migrations/sql/R__code-table-data.sql.sql diff --git a/migrations/sql/R__code-table-data.sql.sql b/migrations/sql/R__code-table-data.sql.sql new file mode 100644 index 00000000..0bc577f0 --- /dev/null +++ b/migrations/sql/R__code-table-data.sql.sql @@ -0,0 +1,46 @@ +insert into + case_management.inaction_reason_code ( + inaction_reason_code, + agency_code, + short_description, + long_description, + display_order, + active_ind, + create_user_id, + create_utc_timestamp + ) +values + ( + 'DUPLICATE', + 'COS', + 'Duplicate', + 'Duplicate', + 3, + 'Y', + CURRENT_USER, + CURRENT_TIMESTAMP + ) on conflict do nothing; + +update case_management.inaction_reason_code +set + display_order = 1 +where + inaction_reason_code = 'DUPLICATE'; + +update case_management.inaction_reason_code +set + display_order = 2 +where + inaction_reason_code = 'NOPUBSFTYC'; + +update case_management.inaction_reason_code +set + display_order = 3 +where + inaction_reason_code = 'OTHOPRPRTY'; + +UPDATE case_management.configuration +SET + configuration_value = cast(configuration_value as INTEGER) + 1 +WHERE + configuration_code = 'CDTABLEVER'; \ No newline at end of file