Files
notifications-api/migrations/versions/0211_email_branding_update_.py

25 lines
506 B
Python
Raw Permalink Normal View History

"""
Revision ID: 0211_email_branding_update
Revises: 0210_remove_monthly_billing
Create Date: 2018-07-31 18:00:20.457755
"""
2024-04-01 15:12:33 -07:00
import sqlalchemy as sa
from alembic import op
2023-08-29 14:54:30 -07:00
revision = "0211_email_branding_update"
down_revision = "0210_remove_monthly_billing"
def upgrade():
2023-08-29 14:54:30 -07:00
op.add_column(
"email_branding", sa.Column("text", sa.String(length=255), nullable=True)
)
op.execute("UPDATE email_branding SET text = name")
def downgrade():
2023-08-29 14:54:30 -07:00
op.drop_column("email_branding", "text")