Skip to content

Commit

Permalink
Merge pull request mongodb#16 from deviouspk/patch-1
Browse files Browse the repository at this point in the history
Bugfix add collection with options
  • Loading branch information
mnphpexpert committed Feb 9, 2020
2 parents 8b9dccb + 6638967 commit b43d5a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Jenssegers/Mongodb/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ public function expire($columns, $seconds)
/**
* @inheritdoc
*/
public function create()
public function create($options = [])
{
$collection = $this->collection->getCollectionName();

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

// Ensure the collection is created.
$db->createCollection($collection);
$db->createCollection($collection, $options);
}

/**
Expand Down

0 comments on commit b43d5a0

Please sign in to comment.