Commit 729b74e0 authored by Craig Morris's avatar Craig Morris

Update Blueprint.php

Get php artisan migrate running
parent 4018b4b9
......@@ -64,7 +64,7 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint {
$columns = $transform;
}
$this->collection->ensureIndex($columns, $options);
$this->collection->createIndex($columns, $options);
return $this;
}
......@@ -185,7 +185,7 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint {
*/
public function create()
{
$collection = $this->collection->getName();
$collection = $this->collection->getCollectionName();
$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