浏览代码

- Remove broken customFields references.

Thanks to Clement87 and Akuket !
Lauri Ojansivu 6 年之前
父节点
当前提交
00eeb86332
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      server/migrations.js

+ 8 - 0
server/migrations.js

@@ -342,3 +342,11 @@ Migrations.add('remove-tag', () => {
     },
   }, noValidateMulti);
 });
+
+Migrations.add('remove-customFields-references-broken', () => {
+  Cards.update(
+    {'customFields.$value': null},
+    {$pull: {customFields: {value: null}}},
+    noValidateMulti,
+  );
+});