Skip to content

Commit

Permalink
Use SQL formatting that aligns with other alembic scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Nov 8, 2024
1 parent 2e8316b commit 7aeea28
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ def upgrade() -> None:
rows = conn.execute("SELECT id from patrons").all()

for row in rows:
uid = str(uuid.uuid4())
uid = uuid.uuid4()
conn.execute(
"UPDATE patrons SET uuid = ? WHERE id = ?",
"""
UPDATE patrons SET uuid = %s
WHERE id = %s
""",
(
uid,
row.id,
Expand Down

0 comments on commit 7aeea28

Please sign in to comment.