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
This commit is contained in:
Lauri Ojansivu 2022-03-12 13:14:59 +02:00 committed by GitHub
commit 850aef41a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {
}
});