"""notification_channels: webhook columns Revision ID: 005 Revises: 004 """ from typing import Sequence, Union import sqlalchemy as sa from alembic import op revision: str = "005" down_revision: Union[str, None] = "004" branch_labels: Union[str, Sequence[str], None] = None depends_on: Union[str, Sequence[str], None] = None def upgrade() -> None: op.add_column("notification_channels", sa.Column("webhook_url", sa.Text(), nullable=True)) op.add_column( "notification_channels", sa.Column("webhook_secret_header", sa.String(length=64), nullable=True), ) op.add_column("notification_channels", sa.Column("webhook_secret", sa.Text(), nullable=True)) def downgrade() -> None: op.drop_column("notification_channels", "webhook_secret") op.drop_column("notification_channels", "webhook_secret_header") op.drop_column("notification_channels", "webhook_url")