Files
siftlode/backend/alembic/versions/0005_shorts_probed.py
T
peter b1832afd18 style: apply ruff format across backend + scripts (line-length 100)
Mechanical, whole-tree `ruff format` pass — no behaviour change. Recorded in
.git-blame-ignore-revs (next commit) so git blame skips it.
2026-08-23 07:43:06 +02:00

30 lines
778 B
Python

"""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")