From 879a84184ff2f9b8719f5ac1e25d35e0fa5f52fb Mon Sep 17 00:00:00 2001 From: Nicu Tofan Date: Tue, 19 Jun 2018 00:42:54 +0300 Subject: added ability to create a tree of cards --- models/cards.js | 5 +++++ server/migrations.js | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/models/cards.js b/models/cards.js index 6edffb79..c5d7cdf9 100644 --- a/models/cards.js +++ b/models/cards.js @@ -15,6 +15,11 @@ Cards.attachSchema(new SimpleSchema({ } }, }, + parentId: { + type: String, + optional: true, + defaultValue: '', + }, listId: { type: String, }, diff --git a/server/migrations.js b/server/migrations.js index a1a5c65a..a32c2f2d 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -258,3 +258,15 @@ Migrations.add('add-assigner-field', () => { }, noValidateMulti); }); + +Migrations.add('add-parent-field-to-cards', () => { + Cards.update({ + parentId: { + $exists: false, + }, + }, { + $set: { + parentId:'', + }, + }, noValidateMulti); +}); -- cgit v1.2.3-1-g7c22