"""remove_message_id_from_sql_queries

Revision ID: 5006033f1d8b
Revises: be9c976830fe
Create Date: 2026-03-04 21:54:03.048181

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '5006033f1d8b'
down_revision: Union[str, Sequence[str], None] = 'be9c976830fe'
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_index(op.f('ix_sql_queries_message_id'), table_name='sql_queries')
    op.drop_column('sql_queries', 'message_id')
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('sql_queries', sa.Column('message_id', sa.INTEGER(), nullable=False))
    op.create_index(op.f('ix_sql_queries_message_id'), 'sql_queries', ['message_id'], unique=False)
    # ### end Alembic commands ###
