"""add pattern_comparison to explanations

Revision ID: 007
Revises: 006
Create Date: 2025-07-05

"""

from collections.abc import Sequence

import sqlalchemy as sa
from alembic import op

revision: str = "007"
down_revision: str | None = "006"
branch_labels: str | Sequence[str] | None = None
depends_on: str | Sequence[str] | None = None


def upgrade() -> None:
    op.add_column("explanations", sa.Column("pattern_comparison", sa.Text(), nullable=True))


def downgrade() -> None:
    op.drop_column("explanations", "pattern_comparison")
