diff --git a/migrations/versions/0371_replace_template_content.py b/migrations/versions/0371_replace_template_content.py index f69d6a36a7..b4f325b1db 100644 --- a/migrations/versions/0371_replace_template_content.py +++ b/migrations/versions/0371_replace_template_content.py @@ -9,13 +9,11 @@ down_revision = '0370_notification_callback_url' def upgrade(): - # Replace only the URLs in the 'templates' table op.execute(""" UPDATE templates SET content = REPLACE(content, 'https://notification.alpha.canada.ca', 'https://api.va.gov/vanotify') """) - # Replace only the URLs in the 'templates_history' table op.execute(""" UPDATE templates_history SET content = REPLACE(content, 'https://notification.alpha.canada.ca', 'https://api.va.gov/vanotify') @@ -23,13 +21,11 @@ def upgrade(): def downgrade(): - # Reverse the replacement of URLs in the 'templates' table op.execute(""" UPDATE templates SET content = REPLACE(content, 'https://api.va.gov/vanotify', 'https://notification.alpha.canada.ca') """) - # Reverse the replacement of URLs in the 'templates_history' table op.execute(""" UPDATE templates_history SET content = REPLACE(content, 'https://api.va.gov/vanotify', 'https://notification.alpha.canada.ca')