summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
Diffstat (limited to 'database/updates.inc')
-rw-r--r--database/updates.inc14
1 files changed, 13 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc
index 1d0de1eeb..1a340188a 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -90,7 +90,8 @@ $sql_updates = array(
"2004-11-07" => "update_111",
"2004-11-15" => "update_112",
"2004-11-28" => "update_113",
- "2004-12-05" => "update_114"
+ "2004-12-05" => "update_114",
+ "2005-01-07" => "update_115"
);
function update_32() {
@@ -2066,6 +2067,17 @@ function update_114() {
return $ret;
}
+function update_115() {
+ $ret = array();
+ if ($GLOBALS['db_type'] == 'mysql') {
+ $ret[] = update_sql("ALTER TABLE {watchdog} ADD severity tinyint(3) unsigned NOT NULL default '0'");
+ }
+ else if ($GLOBALS['db_type'] == 'pgsql') {
+ $ret[] = update_sql("ALTER TABLE {watchdog} ADD severity smallint NOT NULL default '0'");
+ }
+ return $ret;
+}
+
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);