migration script

This commit is contained in:
Son NK 2020-05-28 20:38:38 +02:00
parent 683b3e54d8
commit dc9701177f
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
"""empty message
Revision ID: b2d51e4d94c8
Revises: cfc013b6461a
Create Date: 2020-05-28 20:37:54.991920
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b2d51e4d94c8'
down_revision = 'cfc013b6461a'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('users', 'can_use_fido')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('can_use_fido', sa.BOOLEAN(), server_default=sa.text('false'), autoincrement=False, nullable=False))
# ### end Alembic commands ###