"""Add tool_calls JSONB column to messages."""

from alembic import op

revision = "0013"
down_revision = "0012"


def upgrade() -> None:
    op.execute("""
        ALTER TABLE messages
        ADD COLUMN IF NOT EXISTS tool_calls JSONB
    """)


def downgrade() -> None:
    op.drop_column("messages", "tool_calls")
