Skip to content

Commit

Permalink
#1946 Remove all obsolete index
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 11, 2021
1 parent 3df647a commit 6d88194
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ class TheHiveSchemaDefinition @Inject() extends Schema with UpdatableSchema {
.removeIndex("Case", IndexType.basic, "status")
.removeIndex("Task", IndexType.basic, "status")
.removeIndex("Alert", IndexType.basic, "type", "source", "sourceRef")
//=====[release 4.1.3]=====
.updateGraph("Set caseId in imported alerts", "Alert") { traversal =>
traversal
.project(
Expand All @@ -462,6 +461,15 @@ class TheHiveSchemaDefinition @Inject() extends Schema with UpdatableSchema {
}
Success(())
}
.removeIndex("Alert", IndexType.standard)
.removeIndex("Attachment", IndexType.standard)
.removeIndex("Audit", IndexType.standard)
.removeIndex("Case", IndexType.standard)
.removeIndex("Log", IndexType.standard)
.removeIndex("Observable", IndexType.standard)
.removeIndex("Tag", IndexType.standard)
.removeIndex("Task", IndexType.standard)
//=====[release 4.1.3]=====

val reflectionClasses = new Reflections(
new ConfigurationBuilder()
Expand Down

0 comments on commit 6d88194

Please sign in to comment.