summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 21:42:05 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 21:42:05 +0300
commita1ca62af50047a92692c009b97bebb73f94db7ea (patch)
tree47f884324f34fef0d293add0be4a33a7a22feb1d /update.php
parent22ae284db48d03a2a9c52d48add35ce329450a99 (diff)
cache schema version better
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/update.php b/update.php
index bcb6d6d12..aab84bfdb 100755
--- a/update.php
+++ b/update.php
@@ -145,9 +145,7 @@
}
if (!isset($options['update-schema'])) {
- $schema_version = get_schema_version();
-
- if ($schema_version != SCHEMA_VERSION) {
+ if (get_schema_version() != SCHEMA_VERSION) {
die("Schema version is wrong, please upgrade the database (--update-schema).\n");
}
}