summaryrefslogtreecommitdiff
path: root/bin/updatedb.sh
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-01-14 10:06:12 +0100
committerAleksander Machniak <alec@alec.pl>2013-01-14 10:06:12 +0100
commitc3d061893b3d49ad725d1518ff0c27db54669015 (patch)
tree6c46215d9978f368d5bc84af9320312653f683b4 /bin/updatedb.sh
parentff54e9ae867fa7bfe6280cc33d42d2d9829da6cc (diff)
Don't attempt to write to 'system' table if it doesn't exist
Diffstat (limited to 'bin/updatedb.sh')
-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') . " = ?",