Adds workflow spec name field

This commit is contained in:
Aaron Louie 2020-01-21 15:22:44 -05:00
parent bf97095933
commit c11bf3d286
2 changed files with 29 additions and 0 deletions

View File

@ -10,6 +10,7 @@ from crc import db, ma
class WorkflowSpecModel(db.Model):
__tablename__ = 'workflow_spec'
id = db.Column(db.String, primary_key=True)
name = db.Column(db.String)
display_name = db.Column(db.String)
description = db.Column(db.Text)

View File

@ -0,0 +1,28 @@
"""empty message
Revision ID: e9092efd6f26
Revises: 9d233e1c58b1
Create Date: 2020-01-21 11:53:52.597318
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e9092efd6f26'
down_revision = '9d233e1c58b1'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('workflow_spec', sa.Column('name', sa.String(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('workflow_spec', 'name')
# ### end Alembic commands ###