Skip to content

Commit

Permalink
#2265 Remove all composite index
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Dec 2, 2021
1 parent dcc0ad8 commit 374eab7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ScalliGraph
11 changes: 11 additions & 0 deletions thehive/app/org/thp/thehive/models/TheHiveSchemaDefinition.scala
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,17 @@ class TheHiveSchemaDefinition @Inject() extends Schema with UpdatableSchema {
}
Success(())
}
//=====[release 4.1.15]=====
.removeIndex("Tag", IndexType.unique, "namespace", "predicate", "value")
.removeIndex("Alert", IndexType.unique, "type", "source", "sourceRef", "organisationId")
.removeIndex("Organisation", IndexType.unique, "name")
.removeIndex("Customfield", IndexType.unique, "name")
.removeIndex("Profile", IndexType.unique, "name")
.removeIndex("ImpactStatus", IndexType.unique, "value")
.removeIndex("ObservableType", IndexType.unique, "name")
.removeIndex("User", IndexType.unique, "login")
.removeIndex("Case", IndexType.unique, "number")
.removeIndex("ResolutionStatus", IndexType.unique, "value")

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

0 comments on commit 374eab7

Please sign in to comment.