mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
default priorities now in 10s not 1s
This commit is contained in:
@@ -35,13 +35,13 @@ def upgrade():
|
|||||||
op.create_foreign_key(None, 'provider_statistics', 'provider_details', ['provider_id'], ['id'])
|
op.create_foreign_key(None, 'provider_statistics', 'provider_details', ['provider_id'], ['id'])
|
||||||
|
|
||||||
op.execute(
|
op.execute(
|
||||||
"INSERT INTO provider_details (id, display_name, identifier, priority, notification_type, active) values ('{}', 'MMG', 'mmg', 1, 'sms', true)".format(str(uuid.uuid4()))
|
"INSERT INTO provider_details (id, display_name, identifier, priority, notification_type, active) values ('{}', 'MMG', 'mmg', 10, 'sms', true)".format(str(uuid.uuid4()))
|
||||||
)
|
)
|
||||||
op.execute(
|
op.execute(
|
||||||
"INSERT INTO provider_details (id, display_name, identifier, priority, notification_type, active) values ('{}', 'Firetext', 'firetext', 2, 'sms', true)".format(str(uuid.uuid4()))
|
"INSERT INTO provider_details (id, display_name, identifier, priority, notification_type, active) values ('{}', 'Firetext', 'firetext', 20, 'sms', true)".format(str(uuid.uuid4()))
|
||||||
)
|
)
|
||||||
op.execute(
|
op.execute(
|
||||||
"INSERT INTO provider_details (id, display_name, identifier, priority, notification_type, active) values ('{}', 'AWS SES', 'ses', 1, 'email', true)".format(str(uuid.uuid4()))
|
"INSERT INTO provider_details (id, display_name, identifier, priority, notification_type, active) values ('{}', 'AWS SES', 'ses', 10, 'email', true)".format(str(uuid.uuid4()))
|
||||||
)
|
)
|
||||||
op.execute(
|
op.execute(
|
||||||
"UPDATE provider_rates set provider_id = (select id from provider_details where identifier = 'mmg') where provider = 'mmg'"
|
"UPDATE provider_rates set provider_id = (select id from provider_details where identifier = 'mmg') where provider = 'mmg'"
|
||||||
|
|||||||
Reference in New Issue
Block a user