Commit 1826784b authored by Jens Segers's avatar Jens Segers

Merge pull request #699 from morrislaptop/pecl-mongodb

Update Blueprint.php
parents 4018b4b9 729b74e0
...@@ -64,7 +64,7 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint { ...@@ -64,7 +64,7 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint {
$columns = $transform; $columns = $transform;
} }
$this->collection->ensureIndex($columns, $options); $this->collection->createIndex($columns, $options);
return $this; return $this;
} }
...@@ -185,7 +185,7 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint { ...@@ -185,7 +185,7 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint {
*/ */
public function create() public function create()
{ {
$collection = $this->collection->getName(); $collection = $this->collection->getCollectionName();
$db = $this->connection->getMongoDB(); $db = $this->connection->getMongoDB();
......
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