소스 검색

Merge pull request #4408 from mfilser/attachment_migration_remove_cardId_on_cloudron_fix

Attachment migration, try to ignore error on Cloudron on removing old index cardId
Lauri Ojansivu 3 년 전
부모
커밋
850aef41a4
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      server/migrations.js

+ 4 - 1
server/migrations.js

@@ -1278,5 +1278,8 @@ Migrations.add('migrate-avatars-collectionFS-to-ostrioFiles', () => {
 });
 
 Migrations.add('migrate-attachment-drop-index-cardId', () => {
-  Attachments.collection._dropIndex({'cardId': 1});
+  try {
+    Attachments.collection._dropIndex({'cardId': 1});
+  } catch (error) {
+  }
 });