Added indexes to charId on character fields

This commit is contained in:
Stefan Zermatten
2015-11-02 09:35:05 +02:00
parent e5dbe81ac1
commit 314da14ad1
14 changed files with 14 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
Spells = new Mongo.Collection("spells");
Schemas.Spell = new SimpleSchema({
charId: {type: String, regEx: SimpleSchema.RegEx.Id},
charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1},
prepared: {
type: String,
defaultValue: "prepared",