diff options
author | Andrew Dolgov <[email protected]> | 2021-02-25 21:42:05 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-25 21:42:05 +0300 |
commit | a1ca62af50047a92692c009b97bebb73f94db7ea (patch) | |
tree | 47f884324f34fef0d293add0be4a33a7a22feb1d /update.php | |
parent | 22ae284db48d03a2a9c52d48add35ce329450a99 (diff) |
cache schema version better
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 4 |
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"); } } |