Skip to content
Snippets Groups Projects
Commit 2e82ac99 authored by Shane Kilkelly's avatar Shane Kilkelly
Browse files

Add token-access-refs indexes

parent c3d7f36b
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment