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

Commit b7fb1f0

Browse files
authored
Merge pull request #2 from 1FF/fix-drop-index
Fix drop index. When reverse migration there is an error that index does not exists
2 parents b4d127d + 2b8481c commit b7fb1f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "1ff/laravel-mongodb-session",
33
"description": "A mongodb session driver for laravel",
44
"type": "library",
5-
"version": "1.1.0",
5+
"version": "1.1.1",
66
"require": {
77
"jenssegers/mongodb": "3.*",
88
"illuminate/session": "5.*|6.*"

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)