Skip to content

Commit

Permalink
fix typo of sql_up
Browse files Browse the repository at this point in the history
  • Loading branch information
francojreyes authored Jun 9, 2024
1 parent 50d963a commit 33934e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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"
Expand Down

0 comments on commit 33934e2

Please sign in to comment.