mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Multi-File Storage.
Thanks to mfilser ! Related https://github.com/wekan/wekan/pull/4484 Merge branch 'master' into upgrade-meteor
This commit is contained in:
commit
68e8155805
29 changed files with 921 additions and 276 deletions
|
@ -1216,7 +1216,7 @@ Migrations.add('migrate-attachments-collectionFS-to-ostrioFiles', () => {
|
|||
cardId: fileObj.cardId,
|
||||
listId: fileObj.listId,
|
||||
swimlaneId: fileObj.swimlaneId,
|
||||
source: 'import,'
|
||||
source: 'import'
|
||||
},
|
||||
userId,
|
||||
size: fileSize,
|
||||
|
@ -1328,3 +1328,12 @@ Migrations.add('migrate-attachment-drop-index-cardId', () => {
|
|||
} catch (error) {
|
||||
}
|
||||
});
|
||||
|
||||
Migrations.add('migrate-attachment-migration-fix-source-import', () => {
|
||||
// there was an error at first versions, so source was import, instead of import
|
||||
Attachments.update(
|
||||
{"meta.source":"import,"},
|
||||
{$set:{"meta.source":"import"}},
|
||||
noValidateMulti
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue