ソースを参照

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);
+});