"""add container_name to tool_instances

Revision ID: 0007_instance_container_name
Revises: 0006_tool_instances
Create Date: 2026-05-20 08:00:00.000000

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision: str = "0007_instance_container_name"
down_revision: Union[str, None] = "0006_tool_instances"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column(
        "tool_instances",
        sa.Column("container_name", sa.String(255), nullable=True)
    )


def downgrade() -> None:
    op.drop_column("tool_instances", "container_name")
