mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Attachment migration, try to ignore error on Cloudron on removing old index cardId
- should fix: https://github.com/wekan/wekan/issues/4407#issuecomment-1065782781
This commit is contained in:
parent
62ea3cd4bf
commit
d18da20cdf
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