2
0
mirror of https://github.com/codl/forget synced 2025-01-07 12:52:34 +01:00
forget-cancellare-vecchi-toot/migrations/versions/c1f7444d0f75_add_dormant_to_account.py
codl edf7732e67
overhaul and abstract errors in service libs
also add support for making an account dormant if there is a permanent
error
2017-09-04 22:15:05 +02:00

25 lines
490 B
Python

"""add dormant to account
Revision ID: c1f7444d0f75
Revises: 3a0138499994
Create Date: 2017-09-04 21:57:23.648580
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c1f7444d0f75'
down_revision = '3a0138499994'
branch_labels = None
depends_on = None
def upgrade():
op.add_column('accounts', sa.Column('dormant', sa.Boolean(), server_default='FALSE', nullable=False))
def downgrade():
op.drop_column('accounts', 'dormant')