mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 23:34:05 +08:00
migration script
This commit is contained in:
parent
683b3e54d8
commit
dc9701177f
1 changed files with 29 additions and 0 deletions
29
migrations/versions/2020_052820_b2d51e4d94c8_.py
Normal file
29
migrations/versions/2020_052820_b2d51e4d94c8_.py
Normal 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 ###
|
Loading…
Reference in a new issue