Files
notifications-api/migrations/versions/0172_deprioritise_examples.py

34 lines
696 B
Python
Raw Normal View History

"""
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
2023-08-29 14:54:30 -07:00
revision = "0172_deprioritise_examples"
down_revision = "0171_add_org_invite_template"
def upgrade():
op.get_bind()
2023-08-29 14:54:30 -07:00
op.execute(
"""
update templates
2023-07-17 07:45:54 -07:00
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'
)
2023-08-29 14:54:30 -07:00
"""
)
def downgrade():
pass