"""add mapping_applied column to c2_task

Revision ID: 0007
Revises: 0006
Create Date: 2026-06-10 00:00:00.000000
"""
import sqlalchemy as sa
from alembic import op

revision = "0007"
down_revision = "0006"
branch_labels = None
depends_on = None


def upgrade() -> None:
    with op.batch_alter_table("c2_task") as batch_op:
        batch_op.add_column(
            sa.Column(
                "mapping_applied",
                sa.Boolean(),
                nullable=False,
                server_default=sa.false(),
            )
        )


def downgrade() -> None:
    with op.batch_alter_table("c2_task") as batch_op:
        batch_op.drop_column("mapping_applied")
