Unverified Commit ca095ffc authored by Arthur Vandenberghe's avatar Arthur Vandenberghe Committed by GitHub

Bugfix add collection with options

Adding a fix for #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?
parent e998cd0a
......@@ -188,14 +188,14 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint
/**
* @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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment