"""phase-19: 원본 HTML 본문(email.body_html) — 샌드박스 iframe 렌더용

Revision ID: p19a7b8c9d0e1
Revises: p18f6a7b8c9d0
Create Date: 2026-06-17 00:00:00.000000

"""

from typing import Sequence, Union

import sqlalchemy as sa
from alembic import op

revision: str = "p19a7b8c9d0e1"
down_revision: Union[str, Sequence[str], None] = "p18f6a7b8c9d0"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.add_column("email", sa.Column("body_html", sa.Text(), nullable=False, server_default=""))


def downgrade() -> None:
    op.drop_column("email", "body_html")
