Skip to content

Commit

Permalink
#1341 Ensure index are enable at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jun 25, 2020
1 parent a7cdece commit d0f68b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thehive/app/org/thp/thehive/services/DatabaseWrapper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class DatabaseWrapper(dbProvider: Provider[Database]) extends Database {
override def addSchemaIndexes(schemaObject: Schema): Try[Unit] = db.addSchemaIndexes(schemaObject)
override def addSchemaIndexes(model: Model, models: Model*): Try[Unit] = db.addSchemaIndexes(model, models: _*)
override def addSchemaIndexes(models: Seq[Model]): Try[Unit] = db.addSchemaIndexes(models)
override def enableIndexes(): Try[Unit] = db.enableIndexes()
override def addProperty[T](model: String, propertyName: String, mapping: Mapping[_, _, _]): Try[Unit] =
db.addProperty(model, propertyName, mapping)
override def removeProperty(model: String, propertyName: String, usedOnlyByThisModel: Boolean): Try[Unit] =
Expand Down

0 comments on commit d0f68b4

Please sign in to comment.