From 259d19260c2ee1f10b7a7ac765a1cb5e8e57ed76 Mon Sep 17 00:00:00 2001 From: Maria Traskowsky Date: Thu, 22 Feb 2024 14:46:08 +0000 Subject: [PATCH] redefine orders audit history without the grade in ignored column list --- migrations/app/migrations_manifest.txt | 1 + ...4140_redefine_order_audit_table_grade_col.up.sql | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 migrations/app/schema/20240222144140_redefine_order_audit_table_grade_col.up.sql diff --git a/migrations/app/migrations_manifest.txt b/migrations/app/migrations_manifest.txt index 29ef95cb5e9..93b2fbd2c5d 100644 --- a/migrations/app/migrations_manifest.txt +++ b/migrations/app/migrations_manifest.txt @@ -899,3 +899,4 @@ 20240207173709_updateTransportationOffices.up.sql 20240212150834_20240212_disable_homesafe_stg_cert.up.sql 20240214213247_updateTransportationOfficesGbloc.up.sql +20240222144140_redefine_order_audit_table_grade_col.up.sql diff --git a/migrations/app/schema/20240222144140_redefine_order_audit_table_grade_col.up.sql b/migrations/app/schema/20240222144140_redefine_order_audit_table_grade_col.up.sql new file mode 100644 index 00000000000..2f8885e95c2 --- /dev/null +++ b/migrations/app/schema/20240222144140_redefine_order_audit_table_grade_col.up.sql @@ -0,0 +1,13 @@ +SELECT add_audit_history_table( + target_table := 'orders', + audit_rows := BOOLEAN 't', + audit_query_text := BOOLEAN 't', + ignored_cols := ARRAY[ + 'created_at', + 'updated_at', + 'service_member_id', + 'uploaded_orders_id', + 'entitlement_id', + 'uploaded_amended_orders_id' + ] -- origin_duty_location_id and new_duty_location_id are fks but are utilized to display supplemental information +); \ No newline at end of file