reducing card size in database if no planning poker was started

reducing:
- cards collection size
- database size
- size to transfer from server to client (publish / subscribe)
This commit is contained in:
Martin Filser 2023-03-17 21:31:18 +01:00
parent 4a7fa7c396
commit a929d1e3a4
2 changed files with 16 additions and 13 deletions

View file

@ -1443,3 +1443,17 @@ Migrations.add('attachment-cardCopy-fix-boardId-etc', () => {
});
});
*/
Migrations.add('remove-unused-planning-poker', () => {
Cards.update(
{
"poker.question": false,
},
{
$unset: {
"poker": 1,
},
},
noValidateMulti,
);
});