Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit bf9a7bc

Browse files
committed
Fix drop index. When reverse migration there is an error that index does not exists
1 parent b4d127d commit bf9a7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/Commands/MongodbSessionDropIndex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function handle()
3737

3838
DB::connection('mongodb')->getMongoDB()->command([
3939
'dropIndexes' => $collection,
40-
'indexes' => $this->argument('index'),
40+
'index' => $this->argument('index'),
4141
], [
4242
'readPreference' => new ReadPreference(ReadPreference::RP_PRIMARY)
4343
]);

0 commit comments

Comments
 (0)