app-MAIL-temp/migrations/versions/e83298198ca5_.py
2019-12-15 18:55:16 +02:00

32 lines
879 B
Python

"""empty message
Revision ID: e83298198ca5
Revises: e505cb517589
Create Date: 2019-11-28 23:10:14.129687
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e83298198ca5'
down_revision = 'e505cb517589'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('can_use_api_key', sa.Boolean(), server_default='0', nullable=False))
op.add_column('users', sa.Column('can_use_custom_domain', sa.Boolean(), server_default='0', nullable=False))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('users', 'can_use_custom_domain')
op.drop_column('users', 'can_use_api_key')
# ### end Alembic commands ###