Add migrations for requestedBy and assignedBy fields.

reviewable/pr1679/r2
RJevnikar 7 years ago
parent 9035989abf
commit ea109cfdd7
  1. 25
      server/migrations.js

@ -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…
Cancel
Save