mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 15:22:24 -05:00
So later we can: - make it non-nullable later - remove `govuk` as an option This is mostly for people’s local databases, the manual work here has been done on production already.
26 lines
481 B
Python
26 lines
481 B
Python
"""
|
|
Revision ID: 0217_default_email_branding
|
|
Revises: 0216_remove_colours
|
|
Create Date: 2018-08-24 13:36:49.346156
|
|
"""
|
|
from alembic import op
|
|
from app.models import BRANDING_ORG
|
|
|
|
revision = '0217_default_email_branding'
|
|
down_revision = '0216_remove_colours'
|
|
|
|
|
|
def upgrade():
|
|
op.execute("""
|
|
update
|
|
email_branding
|
|
set
|
|
brand_type = '{}'
|
|
where
|
|
brand_type = null
|
|
""".format(BRANDING_ORG))
|
|
|
|
|
|
def downgrade():
|
|
pass
|