"""added conversation_context to Conversation Context Metadata table to store redis context

Revision ID: dc57fb290621
Revises: 5a52fb845dc0
Create Date: 2025-11-24 11:24:18.296085

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'dc57fb290621'
down_revision: Union[str, Sequence[str], None] = '5a52fb845dc0'
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.add_column('conversation_message_metadata', sa.Column('conversation_context', sa.Text(), nullable=True))
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('conversation_message_metadata', 'conversation_context')
    # ### end Alembic commands ###
