Skip to content

Commit

Permalink
#1340 Ensure indices are enable
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jun 8, 2020
1 parent 7306b1e commit 6c9c03a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thehive/app/org/thp/thehive/models/SchemaUpdater.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ class SchemaUpdater @Inject() (theHiveSchema: TheHiveSchema, db: Database, userS
removePropertyLock("data")
}
.addIndex("Tag", IndexType.tryUnique, "namespace", "predicate", "value")
.dbOperation[JanusDatabase]("Enable indexes")(_.enableIndexes())
.execute(db)(userSrv.getSystemAuthContext)
}

0 comments on commit 6c9c03a

Please sign in to comment.