33 lines
786 B
Python
33 lines
786 B
Python
"""auto_sync
|
|
|
|
Revision ID: a77f97f56b61
|
|
Revises: 9024b393e1ef
|
|
Create Date: 2026-01-17 22:32:23.254493
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'a77f97f56b61'
|
|
down_revision = '9024b393e1ef'
|
|
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_banned', 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_banned')
|
|
|
|
# ### end Alembic commands ###
|