mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
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:
commit
850aef41a4
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue