Dan Funk 241980f98f If you name add a file to a workflow that has the exact same name as a Task Spec's ID, and an extension of "md", it wll use that file as the markdown content, and ignore the markdown in the documentation on the task spec.
Moving the primary process id from the workflow model to the file model, and assuring it is updated properly.  This was causing a bug that would "lose" the workflow.
2020-04-17 13:30:32 -04:00

31 lines
847 B
Python

"""empty message
Revision ID: 476f8a4933ba
Revises: 7be7cecbeea8
Create Date: 2020-04-17 12:10:38.962672
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '476f8a4933ba'
down_revision = '7be7cecbeea8'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('file', sa.Column('primary_process_id', sa.String(), nullable=True))
op.drop_column('workflow_spec', 'primary_process_id')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('workflow_spec', sa.Column('primary_process_id', sa.VARCHAR(), autoincrement=False, nullable=True))
op.drop_column('file', 'primary_process_id')
# ### end Alembic commands ###