소스 검색

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