diff --git a/migrations/versions/134571bfe268_add_mfa_support.py b/migrations/versions/134571bfe268_add_mfa_support.py index a435e7ed90a7c0129589f701f1b30c26b7cc6ce0..cec4b9df774c311e7a759e8fd93a2b1560dd081a 100644 --- a/migrations/versions/134571bfe268_add_mfa_support.py +++ b/migrations/versions/134571bfe268_add_mfa_support.py @@ -17,12 +17,10 @@ depends_on = None def upgrade(): - # ### commands auto generated by Alembic - please adjust! ### - op.add_column('auth', sa.Column('realm', sa.String(length=25), server_default='password', nullable=True)) - # ### end Alembic commands ### + with op.batch_alter_table('auth') as batch_op: + batch_op.add_column(sa.Column('realm', sa.String(length=25), server_default='password', nullable=True)) def downgrade(): - # ### commands auto generated by Alembic - please adjust! ### - op.drop_column('auth', 'realm') - # ### end Alembic commands ### + with op.batch_alter_table('auth') as batch_op: + batch_op.drop_column('realm')