Python v3.8 does not support parenthesized context expressions.
parent
e6d2334753
commit
b02e210c68
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue