33 lines
811 B
Python
33 lines
811 B
Python
"""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 ###
|