Skip to content

Commit 2bb2f93

Browse files
author
Alexander Miertsch
authored
Merge pull request #59 from prooph/replay_index
Create missing index for replaying
2 parents f7382bd + 0fc128e commit 2bb2f93

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/MongoDbEventStoreAdapter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@ private function createIndexes(StreamName $streamName)
368368
'unique' => true,
369369
]
370370
);
371+
372+
$collection->createIndex(
373+
[
374+
'created_at' => 1,
375+
'version' => 1,
376+
]
377+
);
371378
}
372379

373380
/**

0 commit comments

Comments
 (0)