From b5bb2ba809597ec071a994664cd286b708ba00cf Mon Sep 17 00:00:00 2001 From: Jumana B Date: Mon, 29 Jul 2024 13:34:33 -0400 Subject: [PATCH] Fix process type for alert category (#2232) * fix process type for alert category * Pr fix --------- Co-authored-by: William B <7444334+whabanks@users.noreply.github.com> --- migrations/versions/0457_update_categories.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 migrations/versions/0457_update_categories.py diff --git a/migrations/versions/0457_update_categories.py b/migrations/versions/0457_update_categories.py new file mode 100644 index 0000000000..09bcb96d76 --- /dev/null +++ b/migrations/versions/0457_update_categories.py @@ -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