From 6ce6f453b25bc48588a634a18e0ead8d9e579949 Mon Sep 17 00:00:00 2001 From: ian-readman Date: Tue, 27 Aug 2024 09:11:37 +0100 Subject: [PATCH] PO-646 Drop column account_number --- .../V20240823_237__log_audit_details_new_columns.sql | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/resources/db/migration/V20240823_237__log_audit_details_new_columns.sql b/src/main/resources/db/migration/V20240823_237__log_audit_details_new_columns.sql index 96d3e3b34..a7e472292 100644 --- a/src/main/resources/db/migration/V20240823_237__log_audit_details_new_columns.sql +++ b/src/main/resources/db/migration/V20240823_237__log_audit_details_new_columns.sql @@ -2,19 +2,20 @@ * * OPAL Program * -* MODULE : log_audit_details_new_columns.sql +* MODULE : log_audit_details_add_drop_columns.sql * -* DESCRIPTION : Add new columns to the LOG_AUDIT_DETAILS table. +* DESCRIPTION : Add and drop columns in the LOG_AUDIT_DETAILS table. * * VERSION HISTORY: * * Date Author Version Nature of Change * ---------- -------- -------- --------------------------------------------------------------------------------------------------------- -- 23/08/2024 I Readman 1.0 PO-646 Add new columns to the LOG_AUDIT_DETAILS table +- 23/08/2024 I Readman 1.0 PO-646 Add and drop columns in the LOG_AUDIT_DETAILS table * **/ --- Drop columns to maintain column order from data model spreadsheet +-- Drop column to maintain column order from data model spreadsheet ALTER TABLE log_audit_details DROP COLUMN json_request; +ALTER TABLE log_audit_details DROP COLUMN account_number; ALTER TABLE log_audit_details ADD COLUMN associated_record_type varchar(30); ALTER TABLE log_audit_details ADD COLUMN associated_record_id varchar(30); @@ -22,4 +23,4 @@ ALTER TABLE log_audit_details ADD COLUMN json_request text; COMMENT ON COLUMN log_audit_details.associated_record_type IS 'Type of record identified by associated_record_id. Could be transaction, account, suspense line etc'; COMMENT ON COLUMN log_audit_details.associated_record_id IS 'ID of the associated record. So ID of the record or transaction etc being logged'; -COMMENT ON COLUMN log_audit_details.json_request IS 'The REST request information received that initiated this action and written in a json format but stored as TEXT'; \ No newline at end of file +COMMENT ON COLUMN log_audit_details.json_request IS 'The REST request information received that initiated this action and written in a json format but stored as TEXT';