# -*- coding: utf-8 -*-
"""add_output_schema_to_tools

Revision ID: 9aaa90ad26d9
Revises: g1a2b3c4d5e6
Create Date: 2025-10-15 17:29:38.801771

"""

# Standard
from typing import Sequence, Union

# Third-Party
from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision: str = "9aaa90ad26d9"
down_revision: Union[str, Sequence[str], None] = "9c99ec6872ed"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # Add output_schema column to tools table
    op.add_column("tools", sa.Column("output_schema", sa.JSON(), nullable=True))


def downgrade() -> None:
    """Downgrade schema."""
    # Remove output_schema column from tools table
    op.drop_column("tools", "output_schema")
