diff --git a/src/db_extractor_full.py b/src/db_extractor_full.py index f0aaf6c..9f11a98 100644 --- a/src/db_extractor_full.py +++ b/src/db_extractor_full.py @@ -311,6 +311,8 @@ def db_extractor(): "archived_access_codes", "schema_migration", "audit_history_tableslist", + "audit_history", + "v_locations", ] # S3 bucket upload location diff --git a/src/db_schema_dump.py b/src/db_schema_dump.py index d206770..67da0e4 100644 --- a/src/db_schema_dump.py +++ b/src/db_schema_dump.py @@ -44,7 +44,7 @@ def db_schema_dump(): data = {} # Get a list of all tables in the database - cursor.execute("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'") + cursor.execute("SELECT table_name FROM information_schema.tables WHERE table_schema = 'public' AND table_name NOT in ('audit_history','v_locations') ") tables = cursor.fetchall() # For each table, get a list of its columns