Skip to content

Commit

Permalink
PO-646 Drop column account_number
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-readman committed Aug 27, 2024
1 parent d03e2b6 commit 6ce6f45
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
*
* 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);
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';
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';

0 comments on commit 6ce6f45

Please sign in to comment.