Added dropifExists method

parent 1bb259ae
...@@ -96,6 +96,19 @@ class Builder extends \Illuminate\Database\Schema\Builder ...@@ -96,6 +96,19 @@ class Builder extends \Illuminate\Database\Schema\Builder
} }
} }
/**
* @inheritdoc
*/
public function dropIfExists($collection)
{
if($this->hasCollection($collection)) {
return $this->drop($collection);
}
return false;
}
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
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