diff options
author | Andrew Dolgov <[email protected]> | 2013-04-17 12:10:35 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-17 12:10:35 +0400 |
commit | 857efe49e653787f5408fc014ae71efec68494d5 (patch) | |
tree | 39b29ba94e64854762157d4fb645d3fb1f3d138c /update.php | |
parent | a94379f118d1058c66b1fbb7ba34a27a9999ced9 (diff) |
add schema checking to feed updating and update script
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/update.php b/update.php index f5fa9e569..1c43cdb94 100755 --- a/update.php +++ b/update.php @@ -89,6 +89,14 @@ return; } + if (!isset($options['update-schema'])) { + $schema_version = get_schema_version($link); + + if ($schema_version != SCHEMA_VERSION) { + die("Schema version is wrong, please upgrade the database.\n"); + } + } + define('QUIET', isset($options['quiet'])); if (isset($options["log"])) { |