Skip to content

Commit

Permalink
Bugfix add collection with options
Browse files Browse the repository at this point in the history
Adding a fix for mongodb#1734 .

I might come up with a pull request for json schema's:
https://docs.mongodb.com/manual/reference/operator/query/jsonSchema/#op._S_jsonSchema

@jenssegers would you like to have this feature?
  • Loading branch information
anthonyvancauwenberghe authored Apr 4, 2019
1 parent e998cd0 commit ca095ff
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 @@ -188,14 +188,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 ca095ff

Please sign in to comment.