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.
|
|
|
|
|
revision = '0070_fix_notify_user_email'
|
|
|
|
|
down_revision = '0069_add_dvla_job_status'
|
|
|
|
|
|
|
|
|
|
from alembic import op
|
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
|
op.execute("""
|
|
|
|
|
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'
|
|
|
|
|
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
|
op.execute("""
|
|
|
|
|
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'
|
2017-03-30 15:05:03 +01:00
|
|
|
""")
|