more files

This commit is contained in:
Kenneth Kehl
2023-07-17 11:29:08 -07:00
parent 56ea2464e4
commit cefb8a281f
11 changed files with 158 additions and 71 deletions

View File

@@ -7,6 +7,8 @@ Create Date: 2016-06-13 15:15:34.035984
"""
# revision identifiers, used by Alembic.
from sqlalchemy import text
revision = '0029_fix_email_from'
down_revision = '0028_fix_reg_template_history'
@@ -14,10 +16,15 @@ from alembic import op
import sqlalchemy as sa
service_id = 'd6aa2c68-a2d9-4437-ab19-3ae8eb202553'
def upgrade():
op.get_bind()
op.execute("update services set email_from = 'testsender' where id = '{}'".format(service_id))
op.execute("update services_history set email_from = 'testsender' where id = '{}'".format(service_id))
conn = op.get_bind()
input_params = {
"service_id": service_id
}
conn.execute(text("update services set email_from = 'testsender' where id = :service_id"), input_params)
conn.execute(text("update services_history set email_from = 'testsender' where id = :service_id"), input_params)
def downgrade():