add migration for "global" prop on bans

merge-requests/350/merge
Thomas Lynch 1 month ago
parent afdf898a88
commit 02c6612004
  1. 1
      migrations/1.4.2.js
  2. 14
      migrations/1.5.0.js

@ -8,4 +8,5 @@ module.exports = async(db) => {
'public': true,
},
});
};

@ -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,
},
});
};
Loading…
Cancel
Save