mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Add database migration for assignee.
Thanks to ocdtrekkie and xet7 !
This commit is contained in:
parent
33b8952c0b
commit
5b41d72e8d
1 changed files with 16 additions and 0 deletions
|
@ -777,3 +777,19 @@ Migrations.add('fix-incorrect-dates', () => {
|
|||
}),
|
||||
);
|
||||
});
|
||||
|
||||
Migrations.add('add-assignee', () => {
|
||||
Cards.update(
|
||||
{
|
||||
assignees: {
|
||||
$exists: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
$set: {
|
||||
assignees: [],
|
||||
},
|
||||
},
|
||||
noValidateMulti,
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue