2017-03-30 15:05:03 +01:00
|
|
|
"""empty message
|
|
|
|
|
|
|
|
|
|
Revision ID: 0070_fix_notify_user_email
|
|
|
|
|
Revises: 0069_add_dvla_job_status
|
|
|
|
|
Create Date: 2017-03-10 16:15:22.153948
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
2023-08-29 14:54:30 -07:00
|
|
|
revision = "0070_fix_notify_user_email"
|
|
|
|
|
down_revision = "0069_add_dvla_job_status"
|
2017-03-30 15:05:03 +01:00
|
|
|
|
|
|
|
|
import sqlalchemy as sa
|
2023-12-08 21:43:52 -05:00
|
|
|
from alembic import op
|
2017-03-30 15:05:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2023-08-29 14:54:30 -07:00
|
|
|
op.execute(
|
|
|
|
|
"""
|
2017-03-30 15:05:03 +01:00
|
|
|
UPDATE users
|
2022-06-13 13:16:32 -07:00
|
|
|
SET email_address = 'testsender@dispostable.com'
|
2017-03-30 15:05:03 +01:00
|
|
|
WHERE email_address = 'notify-service-user@digital.cabinet-office'
|
2023-08-29 14:54:30 -07:00
|
|
|
"""
|
|
|
|
|
)
|
2017-03-30 15:05:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
2023-08-29 14:54:30 -07:00
|
|
|
op.execute(
|
|
|
|
|
"""
|
2017-03-30 15:05:03 +01:00
|
|
|
UPDATE users
|
|
|
|
|
SET email_address = 'notify-service-user@digital.cabinet-office'
|
2022-06-13 13:16:32 -07:00
|
|
|
WHERE email_address = 'testsender@dispostable.com'
|
2023-08-29 14:54:30 -07:00
|
|
|
"""
|
|
|
|
|
)
|