diff options
-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); +}); |