"""id->unique, deleted deprecated tables Revision ID: f5fbc1975807 Revises: 92dfa9b572f1 Create Date: 2026-05-18 17:08:56.792369 """ from typing import Sequence, Union from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision: str = 'f5fbc1975807' down_revision: Union[str, Sequence[str], None] = '92dfa9b572f1' 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! ### op.drop_table('tickets') op.create_unique_constraint(None, 'bills', ['id']) # ### end Alembic commands ### def downgrade() -> None: """Downgrade schema.""" # ### commands auto generated by Alembic - please adjust! ### op.drop_constraint(None, 'bills', type_='unique') op.create_table('tickets', sa.Column('id', sa.INTEGER(), autoincrement=True, nullable=False), sa.Column('creator_id', sa.BIGINT(), autoincrement=False, nullable=False), sa.Column('thread_id', sa.BIGINT(), autoincrement=False, nullable=True), sa.Column('status', postgresql.ENUM('OPEN', 'CLOSED', 'PENDING', name='ticketstatus'), autoincrement=False, nullable=False), sa.PrimaryKeyConstraint('id', name=op.f('tickets_pkey')), sa.UniqueConstraint('id', name=op.f('tickets_id_key'), postgresql_include=[], postgresql_nulls_not_distinct=False), sa.UniqueConstraint('thread_id', name=op.f('tickets_thread_id_key'), postgresql_include=[], postgresql_nulls_not_distinct=False) ) # ### end Alembic commands ###