diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-01-14 10:06:12 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-01-14 10:06:12 +0100 |
commit | c3d061893b3d49ad725d1518ff0c27db54669015 (patch) | |
tree | 6c46215d9978f368d5bc84af9320312653f683b4 /bin | |
parent | ff54e9ae867fa7bfe6280cc33d42d2d9829da6cc (diff) |
Don't attempt to write to 'system' table if it doesn't exist
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/updatedb.sh | 5 |
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') . " = ?", |