Python v3.8 does not support parenthesized context expressions.

This commit is contained in:
Khushboo Vashi 2025-02-06 14:42:29 +05:30
parent e6d2334753
commit b02e210c68

View File

@ -26,8 +26,8 @@ depends_on = None
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(),