Postgres::dropIndex PHP Method

dropIndex() public method

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