mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
31 lines
879 B
Python
31 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 ###
|