diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-11-14 03:00:14 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-11-14 03:00:14 +0200 |
commit | 5b41d72e8de93833e1788962427422cff62c09a2 (patch) | |
tree | c2d8652246a54fa0cf04a90824b67c178c269354 | |
parent | 33b8952c0b04d1f411d3bad76b4385914a541cff (diff) | |
download | wekan-5b41d72e8de93833e1788962427422cff62c09a2.tar.gz wekan-5b41d72e8de93833e1788962427422cff62c09a2.tar.bz2 wekan-5b41d72e8de93833e1788962427422cff62c09a2.zip |
Add database migration for assignee.
Thanks to ocdtrekkie and xet7 !
-rw-r--r-- | server/migrations.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server/migrations.js b/server/migrations.js index 836220f3..01fb7a5b 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -777,3 +777,19 @@ Migrations.add('fix-incorrect-dates', () => { }), ); }); + +Migrations.add('add-assignee', () => { + Cards.update( + { + assignees: { + $exists: false, + }, + }, + { + $set: { + assignees: [], + }, + }, + noValidateMulti, + ); +}); |