From ea736390a1b7f34404b9022fef92bc3953410990 Mon Sep 17 00:00:00 2001 From: hugh-obrien Date: Sun, 11 Feb 2018 16:58:45 +0000 Subject: [PATCH 1/2] add template id fields to project model --- services/web/app/coffee/models/Project.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/app/coffee/models/Project.coffee b/services/web/app/coffee/models/Project.coffee index b434d35ab9..e5bac198a3 100644 --- a/services/web/app/coffee/models/Project.coffee +++ b/services/web/app/coffee/models/Project.coffee @@ -49,6 +49,8 @@ ProjectSchema = new Schema } tokenAccessReadOnly_refs : [ type:ObjectId, ref:'User' ] tokenAccessReadAndWrite_refs : [ type:ObjectId, ref:'User' ] + templateId: { type: Number } + templateVersionId: { type: Number } overleaf : id : { type: Number } imported_at_ver_id : { type: Number } From 5d1c2a9cf64d57920677b4838491ebc74c1789d7 Mon Sep 17 00:00:00 2001 From: hugh-obrien Date: Wed, 14 Feb 2018 11:07:38 +0000 Subject: [PATCH 2/2] rename v1 template fields on project module --- services/web/app/coffee/models/Project.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/models/Project.coffee b/services/web/app/coffee/models/Project.coffee index e5bac198a3..d05597b8d5 100644 --- a/services/web/app/coffee/models/Project.coffee +++ b/services/web/app/coffee/models/Project.coffee @@ -49,8 +49,8 @@ ProjectSchema = new Schema } tokenAccessReadOnly_refs : [ type:ObjectId, ref:'User' ] tokenAccessReadAndWrite_refs : [ type:ObjectId, ref:'User' ] - templateId: { type: Number } - templateVersionId: { type: Number } + fromV1TemplateId: { type: Number } + fromV1TemplateVersionId: { type: Number } overleaf : id : { type: Number } imported_at_ver_id : { type: Number }