app-MAIL-temp/migrations/versions/e83298198ca5_.py

32 lines
879 B
Python
Raw Normal View History

"""empty message
2019-11-29 00:10:55 +01:00
Revision ID: e83298198ca5
Revises: e505cb517589
2019-11-29 00:10:55 +01:00
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.
2019-11-29 00:10:55 +01:00
revision = 'e83298198ca5'
down_revision = 'e505cb517589'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
2019-11-29 00:10:55 +01:00
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 ###