mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 02:10:12 +01: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,
|
cardId: fileObj.cardId,
|
||||||
listId: fileObj.listId,
|
listId: fileObj.listId,
|
||||||
swimlaneId: fileObj.swimlaneId,
|
swimlaneId: fileObj.swimlaneId,
|
||||||
|
source: 'import,'
|
||||||
},
|
},
|
||||||
userId,
|
userId,
|
||||||
size: fileSize,
|
size: fileSize,
|
||||||
|
|
@ -1320,3 +1321,10 @@ Migrations.add('migrate-avatars-collectionFS-to-ostrioFiles', () => {
|
||||||
readStream.pipe(writeStream);
|
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