Fix migration script and LGTM

This commit is contained in:
Khanh Ngo
2019-12-21 22:26:56 +07:00
parent 7739bf7cfc
commit 4bdd433079
5 changed files with 10 additions and 10 deletions

View File

@ -17,12 +17,10 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('user', sa.Column('confirmed', sa.Boolean(), nullable=True))
# ### end Alembic commands ###
with op.batch_alter_table('user') as batch_op:
batch_op.add_column(sa.Column('confirmed', sa.Boolean()))
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('user', 'confirmed')
# ### end Alembic commands ###
with op.batch_alter_table('user') as batch_op:
batch_op.drop_column('confirmed')