pyfedi/migrations/versions/b18ea0b841fe_user_reports_count.py

33 lines
789 B
Python
Raw Permalink Normal View History

2023-12-31 19:26:57 -08:00
"""user reports count
Revision ID: b18ea0b841fe
Revises: 0dadae40281d
Create Date: 2024-01-01 16:16:45.975293
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b18ea0b841fe'
down_revision = '0dadae40281d'
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('reports', sa.Integer(), 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('reports')
# ### end Alembic commands ###