Skip to content

Commit a907070

Browse files
author
Pooya Parsa
committed
fixes mongodb#835
1 parent 3aad3bd commit a907070

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)