mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 17:22:17 -05:00
Set branding_type to org if it’s none
Same as a0deef06e2 but with `is null` not
`= null` 🤦🏻
This commit is contained in:
25
migrations/versions/0219_default_email_branding.py
Normal file
25
migrations/versions/0219_default_email_branding.py
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
"""
|
||||||
|
Revision ID: 0219_default_email_branding
|
||||||
|
Revises: 0218_another_letter_org
|
||||||
|
Create Date: 2018-08-24 13:36:49.346156
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
from app.models import BRANDING_ORG
|
||||||
|
|
||||||
|
revision = '0219_default_email_branding'
|
||||||
|
down_revision = '0218_another_letter_org'
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
op.execute("""
|
||||||
|
update
|
||||||
|
email_branding
|
||||||
|
set
|
||||||
|
brand_type = '{}'
|
||||||
|
where
|
||||||
|
brand_type is null
|
||||||
|
""".format(BRANDING_ORG))
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
pass
|
||||||
Reference in New Issue
Block a user