Change default Text message sender from U.S. Notify to Notify.gov #446
This commit is contained in:
Carlo Costino
2023-12-13 17:19:22 -05:00
committed by GitHub
2 changed files with 44 additions and 1 deletions

View File

@@ -364,7 +364,7 @@ class Production(Config):
f"notify-api-csv-upload-bucket-{Config.NOTIFY_ENVIRONMENT}"
)
FROM_NUMBER = "US Notify"
FROM_NUMBER = "Notify.gov"
CRONITOR_ENABLED = True

View File

@@ -0,0 +1,43 @@
"""
Revision ID: 0409_fix_service_name
Revises: 0408_fix_timezone_again
Create Date: 2023-12-13 11:38:01.314057
"""
from sqlalchemy import text
revision = "0409_fix_service_name"
down_revision = "0408_fix_timezone_again"
from alembic import op
from flask import current_app
service_id = current_app.config["NOTIFY_SERVICE_ID"]
def upgrade():
conn = op.get_bind()
# modify name of default service user in services
# table_name = 'services'
# col = 'name'
# val = 'Notify.gov'
# select_by_col = 'id'
# select_by_val = service_id
input_params = {"service_id": service_id}
conn.execute(
text("update services set name='Notify.gov' where id =:service_id"), input_params
)
# table_name = 'services_history'
conn.execute(
text("update services_history set name='Notify.gov' where id =:service_id"),
input_params,
)
def downgrade():
### commands auto generated by Alembic - please adjust! ###
pass
### end Alembic commands ###