lithium\data\source\Database::dropSchema()

public method

Drops a table.

Parameters

  • string $source

    The table name to drop.

  • boolean $soft

    With "soft dropping", the function will retrun true even if the table doesn't exists.

Returns

boolean

true 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;
	}