added ability to create a tree of cards

This commit is contained in:
Nicu Tofan 2018-06-19 00:42:54 +03:00
parent f89de026c4
commit 879a84184f
No known key found for this signature in database
GPG key ID: 7EE66E95E64FD0B7
2 changed files with 17 additions and 0 deletions

View file

@ -15,6 +15,11 @@ Cards.attachSchema(new SimpleSchema({
}
},
},
parentId: {
type: String,
optional: true,
defaultValue: '',
},
listId: {
type: String,
},

View file

@ -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);
});