Mongo ensure indexes add tenant to supported collections

This commit is contained in:
TeoV
2018-01-29 18:29:43 +02:00
committed by Dan Christian Bogos
parent 56cd0fd115
commit 4adcc5bb1f

View File

@@ -167,7 +167,7 @@ func (ms *MongoStorage) EnsureIndexes() (err error) {
Background: false,
Sparse: false,
}
for _, col := range []string{colRsP, colRes} {
for _, col := range []string{colRsP, colRes, colSqs, colSqp, colTps, colThs, colSpp, colAttr, colFlt} {
if err = db.C(col).EnsureIndex(idx); err != nil {
return
}