mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Run database migrations when opening board. Not when updating WeKan.
Thanks to xet7 !
This commit is contained in:
parent
ea30612013
commit
2b5c56484a
20 changed files with 2508 additions and 118 deletions
|
|
@ -785,8 +785,13 @@ Boards.helpers({
|
|||
{
|
||||
boardId: this._id,
|
||||
archived: false,
|
||||
// Get lists for all swimlanes in this board
|
||||
swimlaneId: { $in: this.swimlanes().map(s => s._id) },
|
||||
// Get lists for all swimlanes in this board, plus lists without swimlaneId for backward compatibility
|
||||
$or: [
|
||||
{ swimlaneId: { $in: this.swimlanes().map(s => s._id) } },
|
||||
{ swimlaneId: { $exists: false } },
|
||||
{ swimlaneId: '' },
|
||||
{ swimlaneId: null }
|
||||
],
|
||||
},
|
||||
{ sort: sortKey },
|
||||
);
|
||||
|
|
@ -796,8 +801,13 @@ Boards.helpers({
|
|||
return ReactiveCache.getLists(
|
||||
{
|
||||
boardId: this._id,
|
||||
// Get lists for all swimlanes in this board
|
||||
swimlaneId: { $in: this.swimlanes().map(s => s._id) }
|
||||
// Get lists for all swimlanes in this board, plus lists without swimlaneId for backward compatibility
|
||||
$or: [
|
||||
{ swimlaneId: { $in: this.swimlanes().map(s => s._id) } },
|
||||
{ swimlaneId: { $exists: false } },
|
||||
{ swimlaneId: '' },
|
||||
{ swimlaneId: null }
|
||||
]
|
||||
},
|
||||
{ sort: { sort: 1 } }
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue