diff --git a/github-bot/src/main/java/io/github/martinwitt/laughing_train/persistence/DataBaseMigration.java b/github-bot/src/main/java/io/github/martinwitt/laughing_train/persistence/DataBaseMigration.java index bb0bbcd4a..52bac9614 100644 --- a/github-bot/src/main/java/io/github/martinwitt/laughing_train/persistence/DataBaseMigration.java +++ b/github-bot/src/main/java/io/github/martinwitt/laughing_train/persistence/DataBaseMigration.java @@ -97,6 +97,9 @@ public void createIndexes() { .createIndex( BsonDocument.parse("{commitHash: 1, ruleID: 1}"), new IndexOptions().name("commitHash_ruleID_idx")); + badSmellRepositoryImpl + .mongoCollection() + .createIndex(BsonDocument.parse("{identifier: 1}"), new IndexOptions().name("identifier_idx")); } catch (Exception e) { logger.atSevere().withCause(e).log("Error while creating indexes");