Add migrations for requestedBy and assignedBy fields.

This commit is contained in:
RJevnikar 2018-06-06 13:19:53 +00:00
parent 9035989abf
commit ea109cfdd7

View file

@ -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);
});