"""add_harness_to_chat_message

Revision ID: 91cb48845f36
Revises: 8b00d38127c5
Create Date: 2025-12-26 13:02:59.206337

"""

from collections.abc import Sequence

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision: str = "91cb48845f36"
down_revision: str | None = "8b00d38127c5"
branch_labels: str | Sequence[str] | None = None
depends_on: str | Sequence[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "chat_message",
        sa.Column("harness", sa.String(), server_default="pydantic-ai", nullable=False),
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("chat_message", "harness")
    # ### end Alembic commands ###
