"""drop dead Project.auto_summary columns

Revision ID: 0063
Revises: 0062
Create Date: 2026-06-03

auto_summary + summary_updated_at were written by generate_project_summary
(Ollama), removed in the MCP pivot. Nothing has populated them since; the
field was stale-or-NULL. Drop the columns.
"""
from alembic import op
import sqlalchemy as sa


revision = "0063"
down_revision = "0062"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.drop_column("projects", "auto_summary")
    op.drop_column("projects", "summary_updated_at")


def downgrade() -> None:
    op.add_column(
        "projects",
        sa.Column("summary_updated_at", sa.DateTime(timezone=True), nullable=True),
    )
    op.add_column(
        "projects",
        sa.Column("auto_summary", sa.Text(), nullable=True),
    )
