Adds form field key to file model.
This commit is contained in:
parent
e1e866a2b3
commit
654f39e7fd
|
@ -42,6 +42,7 @@ class FileModel(db.Model):
|
|||
workflow_id = db.Column(db.Integer, db.ForeignKey('workflow.id'), nullable=True)
|
||||
study_id = db.Column(db.Integer, db.ForeignKey('study.id'), nullable=True)
|
||||
task_id = db.Column(db.String, nullable=True)
|
||||
form_field_key = db.Column(db.String, nullable=True)
|
||||
|
||||
|
||||
class FileModelSchema(ModelSchema):
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: d08b0fffc43e
|
||||
Revises: f9c4e92a8afe
|
||||
Create Date: 2020-02-05 14:53:25.664026
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'd08b0fffc43e'
|
||||
down_revision = 'f9c4e92a8afe'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('file', sa.Column('form_field_key', sa.String(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('file', 'form_field_key')
|
||||
# ### end Alembic commands ###
|
Loading…
Reference in New Issue