Skip to content

Commit

Permalink
fix(database): 🐛 Also add identifier to index (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt committed Aug 28, 2023
1 parent 48a139b commit 17ddf69
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 17ddf69

Please sign in to comment.