This commit is contained in:
rob
2025-09-12 22:03:24 +01:00
parent c1011af06a
commit 1ccba36a4e
42 changed files with 1041 additions and 182 deletions
@@ -0,0 +1,32 @@
"""add login_disabled to user
Revision ID: 14e183c4b6df
Revises: a094273c2998
Create Date: 2025-09-12 18:12:56.352634
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '14e183c4b6df'
down_revision = 'a094273c2998'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user', schema=None) as batch_op:
batch_op.add_column(sa.Column('login_disabled', sa.Boolean(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user', schema=None) as batch_op:
batch_op.drop_column('login_disabled')
# ### end Alembic commands ###