From 34d70efef74c998c763e8716cc885490a94b1ac0 Mon Sep 17 00:00:00 2001 From: Ryan Rondeau Date: Tue, 18 Feb 2025 13:34:01 -0800 Subject: [PATCH] fix: CE-1148 (#125) --- migrations/sql/V1.37.1__CE-1148.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 migrations/sql/V1.37.1__CE-1148.sql diff --git a/migrations/sql/V1.37.1__CE-1148.sql b/migrations/sql/V1.37.1__CE-1148.sql new file mode 100644 index 00000000..26325b03 --- /dev/null +++ b/migrations/sql/V1.37.1__CE-1148.sql @@ -0,0 +1,5 @@ +-- Prior data migration set case_note_guid for all actions related to a complaint, this script will set case_note_guid to NULL for all actions that are not related to a note. +UPDATE case_management.action +SET case_note_guid = NULL +WHERE action_type_action_xref_guid != (select action_type_action_xref_guid from action_type_action_xref where action_code = 'UPDATENOTE' and action_type_code='CASEACTION' and active_ind=true); +