"""add videos.shorts_probed

Revision ID: 0005_shorts_probed
Revises: 0004_feed_state_prefs
Create Date: 2026-06-11
"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa

revision: str = "0005_shorts_probed"
down_revision: Union[str, None] = "0004_feed_state_prefs"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column(
        "videos",
        sa.Column("shorts_probed", sa.Boolean(), nullable=False, server_default="false"),
    )
    op.create_index("ix_videos_shorts_probed", "videos", ["shorts_probed"])


def downgrade() -> None:
    op.drop_index("ix_videos_shorts_probed", table_name="videos")
    op.drop_column("videos", "shorts_probed")
