mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
33 lines
923 B
Python
33 lines
923 B
Python
"""empty message
|
|
|
|
Revision ID: 01a7d98d9647
|
|
Revises: 69f5d9c59c34
|
|
Create Date: 2019-07-09 10:59:08.639902
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '01a7d98d9647'
|
|
down_revision = '69f5d9c59c34'
|
|
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 ###
|