Skip to content
Snippets Groups Projects
Commit efc54aeb authored by Justin Stark's avatar Justin Stark :tools:
Browse files

commit to mr

parent 827cb5e1
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ def drop_databases() -> None:
drop_query = f"""DROP DATABASE "{database}";"""
try:
connection = engine.connect()
# connection.execute(drop_query)
connection.execute(drop_query)
except:
logging.info(f"Failed to drop database: {database}")
finally:
......@@ -111,11 +111,11 @@ def drop_stale_dev_tables() -> None:
for database, schema, table in stale_tables:
fully_qualified_table_name = f'"{database}"."{schema}"."{table}"'
drop_cmd = f"DROP TABLE {fully_qualified_table_name};"
logging.info(f"Running: {drop_cmd}")
drop_query = f"DROP TABLE {fully_qualified_table_name};"
logging.info(f"Running: {drop_query}")
try:
connection = engine.connect()
# connection.execute(drop_query)
connection.execute(drop_query)
except:
logging.info(f"Failed to drop table: {fully_qualified_table_name}")
finally:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment