24 lines
619 B
Python
24 lines
619 B
Python
|
|
"""channels.keywords: creator keyword tags from brandingSettings (About tab)
|
||
|
|
|
||
|
|
Revision ID: 0055_channel_keywords
|
||
|
|
Revises: 0054_audit_log
|
||
|
|
Create Date: 2026-07-12
|
||
|
|
"""
|
||
|
|
from typing import Sequence, Union
|
||
|
|
|
||
|
|
from alembic import op
|
||
|
|
import sqlalchemy as sa
|
||
|
|
|
||
|
|
revision: str = "0055_channel_keywords"
|
||
|
|
down_revision: Union[str, None] = "0054_audit_log"
|
||
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
||
|
|
depends_on: Union[str, Sequence[str], None] = None
|
||
|
|
|
||
|
|
|
||
|
|
def upgrade() -> None:
|
||
|
|
op.add_column("channels", sa.Column("keywords", sa.Text(), nullable=True))
|
||
|
|
|
||
|
|
|
||
|
|
def downgrade() -> None:
|
||
|
|
op.drop_column("channels", "keywords")
|