Browse Source

Add database migration for assignee.

Thanks to ocdtrekkie and xet7 !
Lauri Ojansivu 5 years ago
parent
commit
5b41d72e8d
1 changed files with 16 additions and 0 deletions
  1. 16 0
      server/migrations.js

+ 16 - 0
server/migrations.js

@@ -777,3 +777,19 @@ Migrations.add('fix-incorrect-dates', () => {
       }),
   );
 });
+
+Migrations.add('add-assignee', () => {
+  Cards.update(
+    {
+      assignees: {
+        $exists: false,
+      },
+    },
+    {
+      $set: {
+        assignees: [],
+      },
+    },
+    noValidateMulti,
+  );
+});