lithium\data\source\Database::dropSchema()
Drops a table.
Parameters
-
string
$sourceThe table name to drop.
-
boolean
$softWith "soft dropping", the function will retrun
trueeven if the table doesn't exists.
Returns
booleantrue on success, false otherwise
Source
public function dropSchema($source, $soft = true) {
if ($source) {
$source = $this->name($source);
$exists = $soft ? 'IF EXISTS ' : '';
return $this->_execute($this->renderCommand('drop', compact('exists', 'source')));
}
return false;
}