"""empty message Revision ID: 54a15eecb10a Revises: Create Date: 2026-07-10 14:17:15.523102 """ from typing import Sequence, Union from alembic import op import sqlalchemy as sa import sqlmodel # revision identifiers, used by Alembic. revision: str = '54a15eecb10a' down_revision: Union[str, Sequence[str], None] = None 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.create_table('messagehistory', sa.Column('id', sqlmodel.sql.sqltypes.AutoString(), nullable=False), sa.Column('conversation_id', sqlmodel.sql.sqltypes.AutoString(), nullable=False), sa.Column('run_id', sqlmodel.sql.sqltypes.AutoString(), nullable=False), sa.Column('new_message', sqlmodel.sql.sqltypes.AutoString(), nullable=False), sa.PrimaryKeyConstraint('id') ) with op.batch_alter_table('messagehistory', schema=None) as batch_op: batch_op.create_index(batch_op.f('ix_messagehistory_conversation_id'), ['conversation_id'], unique=False) batch_op.create_index(batch_op.f('ix_messagehistory_run_id'), ['run_id'], unique=False) # ### end Alembic commands ### def downgrade() -> None: """Downgrade schema.""" # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('messagehistory', schema=None) as batch_op: batch_op.drop_index(batch_op.f('ix_messagehistory_run_id')) batch_op.drop_index(batch_op.f('ix_messagehistory_conversation_id')) op.drop_table('messagehistory') # ### end Alembic commands ###