Postgres::dropRule PHP Method

dropRule() public method

Removes a rule from a table OR view
public dropRule ( $rule, $relation, $cascade )
$rule The rule to drop
$relation The relation from which to drop
$cascade True to cascade drop, false to restrict
    function dropRule($rule, $relation, $cascade)
    {
        $f_schema = $this->_schema;
        $this->fieldClean($f_schema);
        $this->fieldClean($rule);
        $this->fieldClean($relation);
        $sql = "DROP RULE \"{$rule}\" ON \"{$f_schema}\".\"{$relation}\"";
        if ($cascade) {
            $sql .= " CASCADE";
        }
        return $this->execute($sql);
    }
Postgres