mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 05:27:14 -04:00
Add migrations for requestedBy and assignedBy fields.
This commit is contained in:
parent
9035989abf
commit
ea109cfdd7
1 changed files with 25 additions and 0 deletions
|
@ -231,3 +231,28 @@ Migrations.add('add-custom-fields-to-cards', () => {
|
|||
},
|
||||
}, noValidateMulti);
|
||||
});
|
||||
|
||||
Migrations.add('add-requester-field', () => {
|
||||
Cards.update({
|
||||
requestedBy: {
|
||||
$exists: false,
|
||||
},
|
||||
}, {
|
||||
$set: {
|
||||
requestedBy:'',
|
||||
},
|
||||
}, noValidateMulti);
|
||||
});
|
||||
|
||||
Migrations.add('add-assigner-field', () => {
|
||||
Cards.update({
|
||||
assignedBy: {
|
||||
$exists: false,
|
||||
},
|
||||
}, {
|
||||
$set: {
|
||||
assignedBy:'',
|
||||
},
|
||||
}, noValidateMulti);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue