From 374eab76653aeb8444027273d3642ca3ca4aace1 Mon Sep 17 00:00:00 2001 From: To-om Date: Thu, 2 Dec 2021 10:43:24 +0100 Subject: [PATCH] #2265 Remove all composite index --- ScalliGraph | 2 +- .../thp/thehive/models/TheHiveSchemaDefinition.scala | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ScalliGraph b/ScalliGraph index e7cc06f3de..f24ff5ed42 160000 --- a/ScalliGraph +++ b/ScalliGraph @@ -1 +1 @@ -Subproject commit e7cc06f3de8f951fbd27a2be5ace5c1ab1009bef +Subproject commit f24ff5ed42f6c0b8ae7f9548af008bbc66fff337 diff --git a/thehive/app/org/thp/thehive/models/TheHiveSchemaDefinition.scala b/thehive/app/org/thp/thehive/models/TheHiveSchemaDefinition.scala index 6c069e1876..3aaec79806 100644 --- a/thehive/app/org/thp/thehive/models/TheHiveSchemaDefinition.scala +++ b/thehive/app/org/thp/thehive/models/TheHiveSchemaDefinition.scala @@ -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()