function system_update_6007 in Drupal 6
Change the severity column in the watchdog table to the new values.
Related topics
File
- modules/
system/ system.install, line 1349
Code
function system_update_6007() {
$ret = array();
$ret[] = update_sql("UPDATE {watchdog} SET severity = " . WATCHDOG_NOTICE . " WHERE severity = 0");
$ret[] = update_sql("UPDATE {watchdog} SET severity = " . WATCHDOG_WARNING . " WHERE severity = 1");
$ret[] = update_sql("UPDATE {watchdog} SET severity = " . WATCHDOG_ERROR . " WHERE severity = 2");
return $ret;
}