Add DB table for service broadcast settings

This will allow us to store details of which channel a service should be
sending to.

See the comment about how all broadcast services can have a row in the
table but may not at the moment. This has been done for speed as it's
the quickest way to let us set up different services to send to
different channels for some needed testing with the mobile handset
providers in the coming week.
This commit is contained in:
David McDonald
2021-01-28 13:57:33 +00:00
parent a3d966056a
commit 91f5be835a
5 changed files with 80 additions and 2 deletions

View File

@@ -36,7 +36,6 @@ from app.models import (
INBOUND_SMS_TYPE,
NOTIFICATION_RETURNED_LETTER,
UPLOAD_LETTERS,
)
from tests import create_authorization_header
from tests.app.db import (

View File

@@ -119,7 +119,8 @@ def notify_db_session(notify_db, sms_providers):
"auth_type",
"broadcast_status_type",
"invite_status_type",
"service_callback_type"]:
"service_callback_type",
"broadcast_channel_types"]:
notify_db.engine.execute(tbl.delete())
notify_db.session.commit()