Commit 7d439327 authored by Curtis Adam's avatar Curtis Adam

Update the cardset index

parent ea919063
......@@ -328,13 +328,13 @@ function removeDeletedUsers() {
}
function setupDatabaseIndex() {
Leitner._ensureIndex({user_id: 1, cardset_id: 1, original_cardset_id: 1, active: 1, nextDate: 1});
Leitner._ensureIndex({user_id: 1, cardset_id: 1, original_cardset_id: 1, active: 1});
Wozniak._ensureIndex({user_id: 1, cardset_id: 1});
Workload._ensureIndex({cardset_id: 1, user_id: 1});
Cards._ensureIndex({cardset_id: 1, subject: 1});
WebPushSubscriptions._ensureIndex({user_id: 1});
Ratings._ensureIndex({cardset_id: 1, user_id: 1});
Cardsets._ensureIndex({name: 1, date: 1, dateUpdated: 1, owner: 1, kind: 1, shuffled: 1, cardType: 1, difficulty: 1, wordcloud: 1, learningActive: 1});
Cardsets._ensureIndex({name: 1, owner: 1, kind: 1, shuffled: 1, cardType: 1, difficulty: 1, wordcloud: 1, learningActive: 1});
}
Meteor.startup(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment