Add view boards field to change between views

This commit is contained in:
Andrés Manelli 2018-01-22 16:54:19 -03:00
parent 2d7d9b5d9f
commit a14f4ffee2
5 changed files with 44 additions and 0 deletions

View file

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