mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 22:42:28 -05:00
Merge pull request #2069 from alphagov/email_brand_type_non_nullable
Make branding type non-nullable
This commit is contained in:
17
migrations/versions/0220_email_brand_type_non_null.py
Normal file
17
migrations/versions/0220_email_brand_type_non_null.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
Revision ID: 0220_email_brand_type_non_null
|
||||
Revises: 0219_default_email_branding
|
||||
Create Date: 2018-08-24 13:36:49.346156
|
||||
"""
|
||||
from alembic import op
|
||||
|
||||
revision = '0220_email_brand_type_non_null'
|
||||
down_revision = '0219_default_email_branding'
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.alter_column('email_branding', 'brand_type', nullable=False)
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.alter_column('email_branding', 'brand_type', nullable=True)
|
||||
Reference in New Issue
Block a user