Adds primary process ID to workflow spec

This commit is contained in:
Aaron Louie 2020-01-23 10:54:41 -05:00
parent 803e4be008
commit 7fc2e87b84
2 changed files with 29 additions and 0 deletions

View File

@ -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):

View File

@ -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 ###