open-law/migrations/versions/a41f004cad1a_user_is_super_user.py
SvyatoslavArtymovych 3700d89d30 flask admin
2023-05-25 15:44:23 +03:00

33 lines
803 B
Python

"""user.is_super_user
Revision ID: a41f004cad1a
Revises: 7baa732e01c6
Create Date: 2023-05-25 14:31:14.046066
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a41f004cad1a'
down_revision = '7baa732e01c6'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('users', schema=None) as batch_op:
batch_op.add_column(sa.Column('is_super_user', sa.Boolean(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('users', schema=None) as batch_op:
batch_op.drop_column('is_super_user')
# ### end Alembic commands ###