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_daemon2.php | |
parent | 22ae284db48d03a2a9c52d48add35ce329450a99 (diff) |
cache schema version better
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-x | update_daemon2.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/update_daemon2.php b/update_daemon2.php index b75f06ae5..1e8b1d072 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -188,9 +188,7 @@ "Maybe another daemon is already running.\n"); } - $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.\n"); } |