Create index on board property of filters db, update gulpfile

merge-requests/341/head
Thomas Lynch 10 months ago
parent 75fc1f4b45
commit 8c559efa97
  1. 2
      gulpfile.js

@ -202,10 +202,12 @@ async function wipe() {
await Posts.db.dropIndexes();
await Modlogs.db.dropIndexes();
await CustomPages.db.dropIndexes();
await Filters.db.dropIndexes();
await CustomPages.db.createIndex({ 'board': 1, 'page': 1 }, { unique: true });
await Roles.db.createIndex({ 'permissions': 1 }, { unique: true });
await Modlogs.db.createIndex({ 'board': 1 });
await Files.db.createIndex({ 'count': 1 });
await Filters.db.createIndex({ 'board': 1 });
await Bans.db.createIndex({ 'ip.cloak': 1 , 'board': 1 });
await Bans.db.createIndex({ 'expireAt': 1 }, { expireAfterSeconds: 0 }); //custom expiry, i.e. it will expire when current date > than this date
await Bypass.db.createIndex({ 'expireAt': 1 }, { expireAfterSeconds: 0 });

Loading…
Cancel
Save