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

32 lines
947 B
Python
Raw Permalink Normal View History

"""empty message
Revision ID: 7eef64ffb398
Revises: 5f191273d067
Create Date: 2020-02-29 00:02:34.372338
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7eef64ffb398'
down_revision = '5f191273d067'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('users', 'full_mailbox')
op.drop_column('users', 'can_use_multiple_mailbox')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('can_use_multiple_mailbox', sa.BOOLEAN(), server_default=sa.text('false'), autoincrement=False, nullable=False))
op.add_column('users', sa.Column('full_mailbox', sa.BOOLEAN(), server_default=sa.text('false'), autoincrement=False, nullable=False))
# ### end Alembic commands ###