"""Add shorts_template JSONB column to creators.

Revision ID: 028_add_shorts_template
Revises: 027_add_captions_enabled
"""

import sqlalchemy as sa
from sqlalchemy.dialects.postgresql import JSONB

from alembic import op

revision = "028_add_shorts_template"
down_revision = "027_add_captions_enabled"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.add_column(
        "creators",
        sa.Column("shorts_template", JSONB, nullable=True),
    )


def downgrade() -> None:
    op.drop_column("creators", "shorts_template")
