Postgres::dropDomain PHP Method

dropDomain() public method

Drops a domain.
public dropDomain ( $domain, $cascade )
$domain The name of the domain to drop
$cascade True to cascade drop, false to restrict
    function dropDomain($domain, $cascade)
    {
        $f_schema = $this->_schema;
        $this->fieldClean($f_schema);
        $this->fieldClean($domain);
        $sql = "DROP DOMAIN \"{$f_schema}\".\"{$domain}\"";
        if ($cascade) {
            $sql .= " CASCADE";
        }
        return $this->execute($sql);
    }
Postgres