"""empty message
|
|
|
|
Revision ID: 417960a55273
|
|
Revises: f8108bd4cd89
|
|
Create Date: 2018-11-08 23:29:05.161570
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '417960a55273'
|
|
down_revision = 'f8108bd4cd89'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('roles', sa.Column('default', sa.Boolean(), nullable=True))
|
|
op.add_column('roles', sa.Column('permissions', sa.Integer(), nullable=True))
|
|
op.create_index(op.f('ix_roles_default'), 'roles', ['default'], unique=False)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_index(op.f('ix_roles_default'), table_name='roles')
|
|
op.drop_column('roles', 'permissions')
|
|
op.drop_column('roles', 'default')
|
|
# ### end Alembic commands ###
|