diff --git a/app/main.py b/app/main.py index 349229e..f00794d 100644 --- a/app/main.py +++ b/app/main.py @@ -84,7 +84,7 @@ def create_table(metadata: Metadata) -> CreateTableResult: # Test new sql_down cur.execute(metadata.sql_down) - cur.execute(metadata.up) + cur.execute(metadata.sql_up) # Store metadata cmd = r"INSERT INTO Tables(table_name, up, down) VALUES (%s, %s, %s)" @@ -100,7 +100,7 @@ def create_table(metadata: Metadata) -> CreateTableResult: # Test new sql_down cur.execute(metadata.sql_down) - cur.execute(metadata.up) + cur.execute(metadata.sql_up) # Store new metadata cmd = r"UPDATE Tables SET up = %s, down = %s WHERE table_name = %s"