Skip to content

Commit ba73c5b

Browse files
committed
1 parent 64c5c44 commit ba73c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Schema/Blueprint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function sparse_and_unique($columns = null, $options = [])
236236
$options['sparse'] = true;
237237
$options['unique'] = true;
238238

239-
$this->index($columns, $options);
239+
$this->index($columns, null, null, $options);
240240

241241
return $this;
242242
}

0 commit comments

Comments
 (0)