From 7fc2e87b84b91ae9f538bd6d8fe71064a0c03ecf Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Thu, 23 Jan 2020 10:54:41 -0500 Subject: [PATCH] Adds primary process ID to workflow spec --- crc/models/workflow.py | 1 + migrations/versions/0accb57bf013_.py | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 migrations/versions/0accb57bf013_.py diff --git a/crc/models/workflow.py b/crc/models/workflow.py index 12b302ec..ba3a8d49 100644 --- a/crc/models/workflow.py +++ b/crc/models/workflow.py @@ -13,6 +13,7 @@ class WorkflowSpecModel(db.Model): name = db.Column(db.String) display_name = db.Column(db.String) description = db.Column(db.Text) + primary_process_id = db.Column(db.String) class WorkflowSpecModelSchema(ModelSchema): diff --git a/migrations/versions/0accb57bf013_.py b/migrations/versions/0accb57bf013_.py new file mode 100644 index 00000000..e1ad03f9 --- /dev/null +++ b/migrations/versions/0accb57bf013_.py @@ -0,0 +1,28 @@ +"""empty message + +Revision ID: 0accb57bf013 +Revises: e9092efd6f26 +Create Date: 2020-01-23 10:52:49.343854 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '0accb57bf013' +down_revision = 'e9092efd6f26' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('workflow_spec', sa.Column('primary_process_id', sa.String(), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('workflow_spec', 'primary_process_id') + # ### end Alembic commands ###