mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 08:51:30 -05:00
- adds email_from field to the service model - adds subject_line to the template model These are unique and not null fields, so there is a migration here for email_from to populate it.
23 lines
455 B
Python
23 lines
455 B
Python
"""empty message
|
|
|
|
Revision ID: 0018_unique_emailfrom
|
|
Revises: 0017_emailfrom_notnull
|
|
Create Date: 2016-02-18 11:42:18.246280
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '0018_unique_emailfrom'
|
|
down_revision = '0017_emailfrom_notnull'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
op.create_unique_constraint(None, 'services', ['email_from'])
|
|
|
|
|
|
def downgrade():
|
|
op.drop_constraint(None, 'services', type_='unique')
|