Commit 40058c75 authored by Divine's avatar Divine Committed by GitHub

Merge pull request #16 from deviouspk/patch-1

Bugfix add collection with options
parents 4d81b402 ca095ffc
......@@ -236,14 +236,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