From b619cc1cc9f97cd678674c6d1e9f07ed92a8f0dc Mon Sep 17 00:00:00 2001 From: nhertz <nhertz@nrao.edu> Date: Wed, 15 Sep 2021 15:26:04 -0600 Subject: [PATCH] New schema revision that adds the `null_dag` capability --- .../c717f781828d_add_null_dag_capability.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 schema/versions/c717f781828d_add_null_dag_capability.py diff --git a/schema/versions/c717f781828d_add_null_dag_capability.py b/schema/versions/c717f781828d_add_null_dag_capability.py new file mode 100644 index 000000000..fc9c89077 --- /dev/null +++ b/schema/versions/c717f781828d_add_null_dag_capability.py @@ -0,0 +1,25 @@ +"""add null_dag capability + +Revision ID: c717f781828d +Revises: 990c5cd70082 +Create Date: 2021-09-15 14:58:45.780793 + +""" +from alembic import op + +# revision identifiers, used by Alembic. +revision = "c717f781828d" +down_revision = "990c5cd70082" +branch_labels = None +depends_on = None + + +def upgrade(): + op.execute( + "INSERT INTO capabilities (capability_name, capability_steps, max_jobs) VALUES " + "('null_dag', 'prepare-and-run-workflow null_dag\nawait-workflow', 2)" + ) + + +def downgrade(): + op.execute("DELETE FROM capabilities WHERE capability_name = 'null_dag'") -- GitLab