Skip to content

Commit

Permalink
fix: mongodb init script updated infrastructure mongodb yaml (#94)
Browse files Browse the repository at this point in the history
fix: mongodb init script

Signed-off-by: Shailesh Patil <shailesh.patil@iohk.io>
Signed-off-by: Shailesh <Patil>
  • Loading branch information
mineme0110 authored and Shailesh committed Apr 30, 2024
1 parent bf5d688 commit 28039ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infrastructure/charts/mediator/templates/mongodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ data:
const database = 'mediator';
const collectionDidAccount = 'user.account';
const collectionMessages = 'messages';
const collectionMessagesSend = 'messages.outbound';
use(database);
db.createCollection(collectionDidAccount);
db.createCollection(collectionMessages);
db.createCollection(collectionMessagesSend);
//create index
db.getCollection(collectionDidAccount).createIndex({ 'did': 1 }, { unique: true });
// Only enforce uniqueness on non-empty arrays
Expand Down

0 comments on commit 28039ec

Please sign in to comment.