pyfedi/migrations/versions/5b4a967f9988_comment_ranking_float.py

39 lines
997 B
Python
Raw Permalink Normal View History

"""comment ranking float
Revision ID: 5b4a967f9988
Revises: dc49309fc13e
Create Date: 2024-01-07 21:33:02.694552
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5b4a967f9988'
down_revision = 'dc49309fc13e'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('post_reply', schema=None) as batch_op:
batch_op.alter_column('ranking',
existing_type=sa.INTEGER(),
type_=sa.Float(),
existing_nullable=True)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('post_reply', schema=None) as batch_op:
batch_op.alter_column('ranking',
existing_type=sa.Float(),
type_=sa.INTEGER(),
existing_nullable=True)
# ### end Alembic commands ###