app-MAIL-temp/migrations/versions/2020_100412_1abfc9e14d7e_.py

30 lines
699 B
Python
Raw Normal View History

2020-10-04 12:48:28 +02:00
"""empty message
Revision ID: 1abfc9e14d7e
Revises: 58ad4df8583e
Create Date: 2020-10-04 12:47:43.738037
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1abfc9e14d7e'
down_revision = '58ad4df8583e'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('disabled', sa.Boolean(), server_default='0', nullable=False))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('users', 'disabled')
# ### end Alembic commands ###