mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-10 18:49:13 +00:00
add schema checking to feed updating and update script
This commit is contained in:
@@ -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"])) {
|
||||
|
||||
Reference in New Issue
Block a user