mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Revery migrations regression appeared after the merge
This commit is contained in:
parent
25f8dd5141
commit
42a8f04058
1 changed files with 8 additions and 0 deletions
|
@ -1216,6 +1216,7 @@ Migrations.add('migrate-attachments-collectionFS-to-ostrioFiles', () => {
|
|||
cardId: fileObj.cardId,
|
||||
listId: fileObj.listId,
|
||||
swimlaneId: fileObj.swimlaneId,
|
||||
source: 'import,'
|
||||
},
|
||||
userId,
|
||||
size: fileSize,
|
||||
|
@ -1320,3 +1321,10 @@ Migrations.add('migrate-avatars-collectionFS-to-ostrioFiles', () => {
|
|||
readStream.pipe(writeStream);
|
||||
});
|
||||
});
|
||||
|
||||
Migrations.add('migrate-attachment-drop-index-cardId', () => {
|
||||
try {
|
||||
Attachments.collection._dropIndex({'cardId': 1});
|
||||
} catch (error) {
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue