Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change process type values to be consistent #2208

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions migrations/versions/0454_add_template_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ def upgrade():

# Insert the generic low, medium, and high categories
op.execute(
"INSERT INTO template_categories (id, name_en, name_fr, sms_process_type, email_process_type, hidden, created_at) VALUES ('{}', 'Low Category (Bulk)', 'Catégorie Basse (En Vrac)', 'low', 'low', true, now())".format(
"INSERT INTO template_categories (id, name_en, name_fr, sms_process_type, email_process_type, hidden, created_at) VALUES ('{}', 'Low Category', 'Catégorie Basse', 'bulk', 'bulk', true, now())".format(
current_app.config["DEFAULT_TEMPLATE_CATEGORY_LOW"],
)
)
op.execute(
"INSERT INTO template_categories (id, name_en, name_fr, sms_process_type, email_process_type, hidden, created_at) VALUES ('{}', 'Medium Category (Normal)', 'Catégorie Moyenne (Normale)', 'low', 'low', true, now())".format(
"INSERT INTO template_categories (id, name_en, name_fr, sms_process_type, email_process_type, hidden, created_at) VALUES ('{}', 'Medium Category', 'Catégorie Moyenne', 'normal', 'normal', true, now())".format(
current_app.config["DEFAULT_TEMPLATE_CATEGORY_MEDIUM"]
)
)
op.execute(
"INSERT INTO template_categories (id, name_en, name_fr, sms_process_type, email_process_type, hidden, created_at) VALUES ('{}', 'High Category (Priority)', 'Catégorie Haute (Priorité)', 'low', 'low', true, now())".format(
"INSERT INTO template_categories (id, name_en, name_fr, sms_process_type, email_process_type, hidden, created_at) VALUES ('{}', 'High Category', 'Catégorie Haute', 'priority', 'priority', true, now())".format(
current_app.config["DEFAULT_TEMPLATE_CATEGORY_HIGH"]
)
)
Expand Down
Loading