mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
Merge pull request #1723 from alphagov/no-priority-example
Remove priority flag from example templates
This commit is contained in:
31
migrations/versions/0172_deprioritise_examples.py
Normal file
31
migrations/versions/0172_deprioritise_examples.py
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
"""
|
||||||
|
|
||||||
|
Revision ID: 0172_deprioritise_examples
|
||||||
|
Revises: 0171_add_org_invite_template
|
||||||
|
Create Date: 2018-02-28 17:09:56.619803
|
||||||
|
|
||||||
|
"""
|
||||||
|
from alembic import op
|
||||||
|
from app.models import NORMAL
|
||||||
|
import sqlalchemy as sa
|
||||||
|
|
||||||
|
|
||||||
|
revision = '0172_deprioritise_examples'
|
||||||
|
down_revision = '0171_add_org_invite_template'
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade():
|
||||||
|
op.get_bind()
|
||||||
|
op.execute("""
|
||||||
|
update templates
|
||||||
|
set process_type = '{}'
|
||||||
|
where templates.id in (
|
||||||
|
select templates.id from templates
|
||||||
|
join templates_history on templates.id=templates_history.id
|
||||||
|
where templates_history.name = 'Example text message template'
|
||||||
|
)
|
||||||
|
""".format(NORMAL))
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade():
|
||||||
|
pass
|
||||||
Reference in New Issue
Block a user