From d18da20cdf67d13c37cfbece6e9751b29df27db1 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Sat, 12 Mar 2022 09:37:56 +0100 Subject: [PATCH] Attachment migration, try to ignore error on Cloudron on removing old index cardId - should fix: https://github.com/wekan/wekan/issues/4407#issuecomment-1065782781 --- server/migrations.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/migrations.js b/server/migrations.js index fd61e47cd..2824d7dfb 100644 --- a/server/migrations.js +++ b/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) { + } });