Postgres::dropTable PHP Method

dropTable() public method

Removes a table from the database
public dropTable ( $table, $cascade )
$table The table to drop
$cascade True to cascade drop, false to restrict
    function dropTable($table, $cascade)
    {
        $f_schema = $this->_schema;
        $this->fieldClean($f_schema);
        $this->fieldClean($table);
        $sql = "DROP TABLE \"{$f_schema}\".\"{$table}\"";
        if ($cascade) {
            $sql .= " CASCADE";
        }
        return $this->execute($sql);
    }
Postgres