Skip to content

Commit 729b74e

Browse files
committed
Update Blueprint.php
Get php artisan migrate running
1 parent 4018b4b commit 729b74e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Jenssegers/Mongodb/Schema/Blueprint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function index($columns = null, $options = [])
6464
$columns = $transform;
6565
}
6666

67-
$this->collection->ensureIndex($columns, $options);
67+
$this->collection->createIndex($columns, $options);
6868

6969
return $this;
7070
}
@@ -185,7 +185,7 @@ public function expire($columns, $seconds)
185185
*/
186186
public function create()
187187
{
188-
$collection = $this->collection->getName();
188+
$collection = $this->collection->getCollectionName();
189189

190190
$db = $this->connection->getMongoDB();
191191

0 commit comments

Comments
 (0)