open-law/migrations/versions/a41f004cad1a_user_is_super_user.py
SvyatoslavArtymovych f6f7a48f63 fix migrations
2023-06-08 11:03:00 +03:00

33 lines
803 B
Python

"""user.is_super_user
Revision ID: a41f004cad1a
Revises: 7c8a5aefe801
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 = "7c8a5aefe801"
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 ###