浏览代码

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

Lauri Ojansivu 7 年之前
父节点
当前提交
642507fb42
共有 1 个文件被更改,包括 12 次插入0 次删除
  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);
+});