Ver código fonte

Attachment property "meta.source" had wrong value

Martin Filser 3 anos atrás
pai
commit
fe018225b4
1 arquivos alterados com 9 adições e 0 exclusões
  1. 9 0
      server/migrations.js

+ 9 - 0
server/migrations.js

@@ -1332,3 +1332,12 @@ Migrations.add('migrate-attachment-drop-index-cardId', () => {
   } catch (error) {
   }
 });
+
+Migrations.add('migrate-attachment-migration-fix-source-import', () => {
+  // there was an error at first versions, so source was import, instead of import
+  Attachments.update(
+    {"meta.source":"import,"},
+    {$set:{"meta.source":"import"}},
+    noValidateMulti
+  );
+});