Files
notifications-api/migrations/versions/0172_deprioritise_examples.py
2024-02-28 12:43:34 -05:00

32 lines
665 B
Python

"""
Revision ID: 0172_deprioritise_examples
Revises: 0171_add_org_invite_template
Create Date: 2018-02-28 17:09:56.619803
"""
import sqlalchemy as sa
from alembic import op
revision = "0172_deprioritise_examples"
down_revision = "0171_add_org_invite_template"
def upgrade():
op.get_bind()
op.execute(
"""
update templates
set process_type = 'normal'
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'
)
"""
)
def downgrade():
pass