From c3d061893b3d49ad725d1518ff0c27db54669015 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 14 Jan 2013 10:06:12 +0100 Subject: Don't attempt to write to 'system' table if it doesn't exist --- bin/updatedb.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') 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') . " = ?", -- cgit v1.2.3