Browse Source

Merge branch 'feature-custom-fields' of https://github.com/feuerball11/wekan into devel

Lauri Ojansivu 7 years ago
parent
commit
642507fb42
1 changed files with 12 additions and 0 deletions
  1. 12 0
      server/migrations.js

+ 12 - 0
server/migrations.js

@@ -219,3 +219,15 @@ Migrations.add('add-profile-view', () => {
     );
   });
 });
+
+Migrations.add('add-custom-fields-to-cards', () => {
+  Cards.update({
+    customFields: {
+      $exists: false,
+    },
+  }, {
+    $set: {
+      customFields:[],
+    },
+  }, noValidateMulti);
+});