mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Add view boards field to change between views
This commit is contained in:
parent
2d7d9b5d9f
commit
a14f4ffee2
5 changed files with 44 additions and 0 deletions
|
|
@ -175,3 +175,15 @@ Migrations.add('add-swimlanes', () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
Migrations.add('add-views', () => {
|
||||
Boards.find().forEach((board) => {
|
||||
if (!board.hasOwnProperty('view')) {
|
||||
Boards.direct.update(
|
||||
{ _id: board._id },
|
||||
{ $set: { view: 'board-view-swimlanes' } },
|
||||
noValidate
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue