fediversion/backend/alembic/versions/ad5a56553d20_remove_x_handle.py
fullsizemalt 58f077268f
Some checks failed
Deploy Fediversion / deploy (push) Failing after 1s
feat(social): add profile poster, social handles, remove X
2025-12-29 21:05:34 -08:00

36 lines
998 B
Python

"""remove_x_handle
Revision ID: ad5a56553d20
Revises: 409112776ded
Create Date: 2025-12-29 21:01:08.011913
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = 'ad5a56553d20'
down_revision: Union[str, Sequence[str], None] = '409112776ded'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
"""Upgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user', schema=None) as batch_op:
batch_op.drop_column('x_handle')
# ### end Alembic commands ###
def downgrade() -> None:
"""Downgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('user', schema=None) as batch_op:
batch_op.add_column(sa.Column('x_handle', sa.VARCHAR(), nullable=True))
# ### end Alembic commands ###