private function dropTable()
{
/**
* @param \Illuminate\Database\Schema\Builder $schema
*/
$schema = $this->handler->connection()->getSchemaBuilder();
$tableName = $this->handler->getConfigHandler()->getTableName($this->config);
if ($schema->hasTable($tableName) === false) {
throw new Exceptions\NotExistTableException();
}
$schema->drop($tableName);
$tableName = $this->handler->getConfigHandler()->getRevisionTableName($this->config);
if ($this->config->get('revision') == true) {
if ($schema->hasTable($tableName) === false) {
throw new Exceptions\NotExistRevisionTableException();
}
$schema->drop($tableName);
}
}