Add token-access-refs indexes

This commit is contained in:
Shane Kilkelly 2017-11-08 11:55:08 +00:00
parent 008d052862
commit efe09aa885

View file

@ -30,6 +30,14 @@ exports.migrate = (client, done=()->) ->
}, (err) ->
if err?
return done(err)
db.projects.ensureIndex {tokenAccessReadAndWrite_refs: 1}, {
background: true
}, (err) ->
if err?
return done(err)
db.projects.ensureIndex {tokenAccessOnly_refs: 1}, {
background: true
}, (err) ->
console.log ">> done adding indexes for token-based project access"
done()