From 53d72bdaae2e8554f4e73728f5a58338b5479560 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Mon, 13 Jan 2020 17:52:37 -0500 Subject: [PATCH] Includes workflow spec id --- crc/models/file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crc/models/file.py b/crc/models/file.py index a977e9df..0e619aa9 100644 --- a/crc/models/file.py +++ b/crc/models/file.py @@ -30,12 +30,13 @@ class FileModel(db.Model): type = db.Column(db.Enum(FileType)) primary = db.Column(db.Boolean) content_type = db.Column(db.String) - workflow_spec_id = db.Column(db.Integer, db.ForeignKey('workflow_spec.id')) + workflow_spec_id = db.Column(db.String, db.ForeignKey('workflow_spec.id')) class FileModelSchema(ModelSchema): class Meta: model = FileModel + include_fk = True # Includes foreign keys type = EnumField(FileType)