"""Add celery_task_id and scan_progress to classification_project

Revision ID: 003
Revises: 002
Create Date: 2026-04-23 14:30:00.000000

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa

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


def upgrade() -> None:
    op.add_column("classification_project", sa.Column("celery_task_id", sa.String(100), nullable=True))
    op.add_column("classification_project", sa.Column("scan_progress", sa.Text(), nullable=True))


def downgrade() -> None:
    op.drop_column("classification_project", "scan_progress")
    op.drop_column("classification_project", "celery_task_id")
