mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Migrate customFields
This commit is contained in:
parent
ff19d6744e
commit
4cd0d1c397
6 changed files with 24 additions and 10 deletions
|
|
@ -525,3 +525,16 @@ Migrations.add('fix-circular-reference_', () => {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
Migrations.add('mutate-boardIds-in-customfields', () => {
|
||||
CustomFields.find().forEach((cf) => {
|
||||
CustomFields.update(cf, {
|
||||
$set: {
|
||||
boardIds: [cf.boardId],
|
||||
},
|
||||
$unset: {
|
||||
boardId: "",
|
||||
},
|
||||
}, noValidateMulti);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue