Skip to content
Snippets Groups Projects
Commit 410742bb authored by Daniel Nemergut's avatar Daniel Nemergut
Browse files

Forgot to add the actual update commands

parent 896ef452
1 merge request!1300Correcting the pims_split metadata and dag files to iterate over the splits
Pipeline #9369 passed
...@@ -112,6 +112,13 @@ def upgrade(): ...@@ -112,6 +112,13 @@ def upgrade():
""" """
) )
op.execute(
f"""
UPDATE workflow_templates
SET content = replace(convert_from(content, 'utf8'), E'{old_condor_args}', E'{new_condor_args}')::bytea
WHERE workflow_name = 'pims_split' AND filename = 'split.condor'
""")
op.execute( op.execute(
f""" f"""
UPDATE workflow_templates UPDATE workflow_templates
...@@ -130,6 +137,13 @@ def downgrade(): ...@@ -130,6 +137,13 @@ def downgrade():
""" """
) )
op.execute(
f"""
UPDATE workflow_templates
SET content = replace(convert_from(content, 'utf8'), E'{new_condor_args}', E'{old_condor_args}')::bytea
WHERE workflow_name = 'pims_split' AND filename = 'split.condor'
""")
op.execute( op.execute(
f""" f"""
UPDATE workflow_templates UPDATE workflow_templates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment