Skip to content

Commit b43d5a0

Browse files
committed
Merge pull request mongodb#16 from deviouspk/patch-1
Bugfix add collection with options
2 parents 8b9dccb + 6638967 commit b43d5a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Jenssegers/Mongodb/Schema/Blueprint.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ public function expire($columns, $seconds)
236236
/**
237237
* @inheritdoc
238238
*/
239-
public function create()
239+
public function create($options = [])
240240
{
241241
$collection = $this->collection->getCollectionName();
242242

243243
$db = $this->connection->getMongoDB();
244244

245245
// Ensure the collection is created.
246-
$db->createCollection($collection);
246+
$db->createCollection($collection, $options);
247247
}
248248

249249
/**

0 commit comments

Comments
 (0)