Skip to content

Commit

Permalink
Python v3.8 does not support parenthesized context expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboovashi committed Feb 6, 2025
1 parent e6d2334 commit b02e210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/migrations/versions/255e2842e4d7_.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@


def upgrade():
with (op.batch_alter_table("server",
table_kwargs={'sqlite_autoincrement': True}) as batch_op):
with op.batch_alter_table("server",
table_kwargs={'sqlite_autoincrement': True}) as batch_op:
if context.get_impl().bind.dialect.name == "sqlite":
batch_op.alter_column('id', autoincrement=True)
batch_op.add_column(sa.Column('is_adhoc', sa.Integer(),
Expand Down

0 comments on commit b02e210

Please # to comment.