public enableTrigger ( $tgname, $table ) | ||
$tgname | The name of the trigger to enable | |
$table | The table in which to enable the trigger |
function enableTrigger($tgname, $table)
{
$f_schema = $this->_schema;
$this->fieldClean($f_schema);
$this->fieldClean($tgname);
$this->fieldClean($table);
$sql = "ALTER TABLE \"{$f_schema}\".\"{$table}\" ENABLE TRIGGER \"{$tgname}\"";
return $this->execute($sql);
}