Commit 6002aca0 authored by Jens Segers's avatar Jens Segers

Use remove for truncate, fixes #85

parent 0600331d
......@@ -486,7 +486,7 @@ class Builder extends \Illuminate\Database\Query\Builder {
*/
public function truncate()
{
$result = $this->collection->drop();
$result = $this->collection->remove();
return (1 == (int) $result['ok']);
}
......
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