]> git.wh0rd.org - tt-rss.git/blobdiff - update.php
add schema checking to feed updating and update script
[tt-rss.git] / update.php
index f5fa9e5694f0e170c6fa4bcd7e24592eb1c73fcb..1c43cdb94c2233be9aaf3c426e117590498b33bf 100755 (executable)
                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"])) {