summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/updatedb.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/updatedb.sh b/bin/updatedb.sh
index bc86d0496..9f2aef1bf 100755
--- a/bin/updatedb.sh
+++ b/bin/updatedb.sh
@@ -159,6 +159,11 @@ function update_db_schema($label, $version, $file)
}
}
+ // escape if 'system' table does not exist
+ if ($version < 2013011000) {
+ return;
+ }
+
$DB->query("UPDATE " . $DB->quote_identifier('system')
." SET " . $DB->quote_identifier('value') . " = ?"
." WHERE " . $DB->quote_identifier('name') . " = ?",