add migration for "global" prop on bans

This commit is contained in:
Thomas Lynch
2024-04-29 22:17:19 +10:00
parent afdf898a88
commit 02c6612004
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -8,4 +8,5 @@ module.exports = async(db) => {
'public': true,
},
});
};
+14
View File
@@ -0,0 +1,14 @@
'use strict';
module.exports = async(db) => {
console.log('Updating all bans with board: null to be global true');
await db.collection('bans').updateMany({
board: null,
}, {
'$set': {
'global': true,
},
});
};