Skip to content

Commit

Permalink
Fix process type for alert category (#2232)
Browse files Browse the repository at this point in the history
* fix process type for alert category

* Pr fix

---------

Co-authored-by: William B <[email protected]>
  • Loading branch information
jzbahrai and whabanks authored Jul 29, 2024
1 parent 5eafbd2 commit b5bb2ba
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions migrations/versions/0457_update_categories.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""
Revision ID: 0457_update_categories
Revises: 0456_update_template_categories
Create Date: 2024-06-25 13:32:00
"""
from alembic import op

revision = "0457_update_categories"
down_revision = "0456_update_template_categories"

CAT_ALERT_ID = "1d8ce435-a7e5-431b-aaa2-a418bc4d14f9"
CAT_DECISION_ID = "e81678c0-4897-4111-b9d0-172f6b595f89"


def upgrade():
op.execute(
"UPDATE template_categories SET email_process_type='normal', sms_process_type='normal' WHERE id = '{}'".format(
CAT_ALERT_ID,
)
)
op.execute(
"UPDATE template_categories SET email_process_type='bulk', sms_process_type='bulk' WHERE id = '{}'".format(
CAT_DECISION_ID,
)
)


def downgrade():
pass

0 comments on commit b5bb2ba

Please sign in to comment.