summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-11-14 03:00:14 +0200
committerLauri Ojansivu <x@xet7.org>2019-11-14 03:00:14 +0200
commit5b41d72e8de93833e1788962427422cff62c09a2 (patch)
treec2d8652246a54fa0cf04a90824b67c178c269354 /server
parent33b8952c0b04d1f411d3bad76b4385914a541cff (diff)
downloadwekan-5b41d72e8de93833e1788962427422cff62c09a2.tar.gz
wekan-5b41d72e8de93833e1788962427422cff62c09a2.tar.bz2
wekan-5b41d72e8de93833e1788962427422cff62c09a2.zip
Add database migration for assignee.
Thanks to ocdtrekkie and xet7 !
Diffstat (limited to 'server')
-rw-r--r--server/migrations.js16
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,
+ );
+});