mirror of
https://github.com/logos-co/open-law.git
synced 2025-02-03 02:24:45 +00:00
33 lines
803 B
Python
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 ###
|