From f15027c95322c19dd50078708ecb0b78ca60d4e6 Mon Sep 17 00:00:00 2001 From: patelila Date: Wed, 19 Jun 2024 09:14:09 +0100 Subject: [PATCH 1/2] CCD-4790 Drop marked_by_logstash field in the case_data table --- ..._CCD-4790_Drop_marked_by_logstash_field_case_data.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/main/resources/db/migration/V20240619_4790__CCD-4790_Drop_marked_by_logstash_field_case_data.sql diff --git a/src/main/resources/db/migration/V20240619_4790__CCD-4790_Drop_marked_by_logstash_field_case_data.sql b/src/main/resources/db/migration/V20240619_4790__CCD-4790_Drop_marked_by_logstash_field_case_data.sql new file mode 100644 index 0000000000..4409457b22 --- /dev/null +++ b/src/main/resources/db/migration/V20240619_4790__CCD-4790_Drop_marked_by_logstash_field_case_data.sql @@ -0,0 +1,9 @@ +-- drop INDEX idx_case_data_marked_by_logstash +-- remove column marked_by_logstash from case_data +-- as now replaced with case_data_logstash_queue table + +DROP INDEX IF exists idx_case_data_marked_by_logstash; +ALTER table case_data +DROP COLUMN IF EXISTS marked_by_logstash + + From 763e958389828f1f03f3f55bcace78a99b09e2ee Mon Sep 17 00:00:00 2001 From: RebeccaBaker <38425793+RebeccaBaker@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:04:22 +0000 Subject: [PATCH 2/2] Update V20240619_4790__CCD-4790_Drop_marked_by_logstash_field_case_data.sql --- ...__CCD-4790_Drop_marked_by_logstash_field_case_data.sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/resources/db/migration/V20240619_4790__CCD-4790_Drop_marked_by_logstash_field_case_data.sql b/src/main/resources/db/migration/V20240619_4790__CCD-4790_Drop_marked_by_logstash_field_case_data.sql index 4409457b22..5a3a40789c 100644 --- a/src/main/resources/db/migration/V20240619_4790__CCD-4790_Drop_marked_by_logstash_field_case_data.sql +++ b/src/main/resources/db/migration/V20240619_4790__CCD-4790_Drop_marked_by_logstash_field_case_data.sql @@ -1,3 +1,11 @@ +-- +-- drop old set_case_data_marked_by_logstash +-- Name: insert_update_logstash_queue(); Type: FUNCTION; Schema: public; Owner: ccd
 + +DROP TRIGGER IF EXISTS trg_case_data_updated ON public.case_data; + +DROP FUNCTION IF exists set_case_data_marked_by_logstash;
 + -- drop INDEX idx_case_data_marked_by_logstash -- remove column marked_by_logstash from case_data -- as now replaced with case_data_logstash_queue table