2019-11-29 00:03:11 +01:00
|
|
|
"""empty message
|
|
|
|
|
2019-11-29 00:10:55 +01:00
|
|
|
Revision ID: e83298198ca5
|
2019-11-29 00:03:11 +01:00
|
|
|
Revises: e505cb517589
|
2019-11-29 00:10:55 +01:00
|
|
|
Create Date: 2019-11-28 23:10:14.129687
|
2019-11-29 00:03:11 +01:00
|
|
|
|
|
|
|
"""
|
|
|
|
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'
|
2019-11-29 00:03:11 +01:00
|
|
|
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))
|
2019-11-29 00:03:11 +01:00
|
|
|
# ### 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 ###
|