"""Add captions_enabled boolean to generated_shorts.

Revision ID: 027_add_captions_enabled
Revises: 026_add_share_token
"""

import sqlalchemy as sa

from alembic import op

revision = "027_add_captions_enabled"
down_revision = "026_add_share_token"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.add_column(
        "generated_shorts",
        sa.Column(
            "captions_enabled",
            sa.Boolean(),
            nullable=False,
            server_default=sa.text("false"),
        ),
    )


def downgrade() -> None:
    op.drop_column("generated_shorts", "captions_enabled")
