mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
39 lines
997 B
Python
39 lines
997 B
Python
|
"""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 ###
|