chore(home): mirror from kalinamall (9883e6a) with papatramp URLs
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
"""notification_channels: SMTP/email columns
|
||||
|
||||
Revision ID: 006
|
||||
Revises: 005
|
||||
"""
|
||||
|
||||
from typing import Sequence, Union
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
revision: str = "006"
|
||||
down_revision: Union[str, None] = "005"
|
||||
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("smtp_host", sa.Text(), nullable=True))
|
||||
op.add_column("notification_channels", sa.Column("smtp_port", sa.Integer(), nullable=True))
|
||||
op.add_column("notification_channels", sa.Column("smtp_user", sa.String(length=128), nullable=True))
|
||||
op.add_column("notification_channels", sa.Column("smtp_password", sa.Text(), nullable=True))
|
||||
op.add_column("notification_channels", sa.Column("mail_from", sa.String(length=256), nullable=True))
|
||||
op.add_column("notification_channels", sa.Column("mail_to", sa.Text(), nullable=True))
|
||||
op.add_column(
|
||||
"notification_channels",
|
||||
sa.Column("smtp_starttls", sa.Boolean(), nullable=False, server_default=sa.text("true")),
|
||||
)
|
||||
op.add_column(
|
||||
"notification_channels",
|
||||
sa.Column("smtp_ssl", sa.Boolean(), nullable=False, server_default=sa.text("false")),
|
||||
)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_column("notification_channels", "smtp_ssl")
|
||||
op.drop_column("notification_channels", "smtp_starttls")
|
||||
op.drop_column("notification_channels", "mail_to")
|
||||
op.drop_column("notification_channels", "mail_from")
|
||||
op.drop_column("notification_channels", "smtp_password")
|
||||
op.drop_column("notification_channels", "smtp_user")
|
||||
op.drop_column("notification_channels", "smtp_port")
|
||||
op.drop_column("notification_channels", "smtp_host")
|
||||
Reference in New Issue
Block a user