diff options
author | Nicu Tofan <nicu.tofan@gmail.com> | 2018-06-19 00:42:54 +0300 |
---|---|---|
committer | Nicu Tofan <nicu.tofan@gmail.com> | 2018-06-26 14:32:48 +0300 |
commit | 879a84184ff2f9b8719f5ac1e25d35e0fa5f52fb (patch) | |
tree | 8159f9462c0c0d81fa4dfe78032f2b8926999505 | |
parent | f89de026c414879bdb61a0f3117e92fde6acf5aa (diff) | |
download | wekan-879a84184ff2f9b8719f5ac1e25d35e0fa5f52fb.tar.gz wekan-879a84184ff2f9b8719f5ac1e25d35e0fa5f52fb.tar.bz2 wekan-879a84184ff2f9b8719f5ac1e25d35e0fa5f52fb.zip |
added ability to create a tree of cards
-rw-r--r-- | models/cards.js | 5 | ||||
-rw-r--r-- | server/migrations.js | 12 |
2 files changed, 17 insertions, 0 deletions
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); +}); |