Add database migration for assignee.

Thanks to ocdtrekkie and xet7 !
This commit is contained in:
Lauri Ojansivu 2019-11-14 03:00:14 +02:00
parent 33b8952c0b
commit 5b41d72e8d

View file

@ -777,3 +777,19 @@ Migrations.add('fix-incorrect-dates', () => {
}),
);
});
Migrations.add('add-assignee', () => {
Cards.update(
{
assignees: {
$exists: false,
},
},
{
$set: {
assignees: [],
},
},
noValidateMulti,
);
});