]> git.wh0rd.org Git - tt-rss.git/commitdiff
allow import of schema_version=2 xml db
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 2 Dec 2005 08:13:10 +0000 (09:13 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 2 Dec 2005 08:13:10 +0000 (09:13 +0100)
xml-import.php

index d35c01a9ffebf832ad6b5bb780edaf716e11c6b9..04f3ee39ebffca34201e4793b60bcde79639411b 100644 (file)
@@ -3,7 +3,7 @@
        require_once "functions.php";
        require_once "db.php";
 
-       define('SOURCE_SCHEMA_VERSION', 1);
+       define('MAX_SOURCE_SCHEMA_VERSION', 2);
        define('TARGET_SCHEMA_VERSION', 2);
 
        $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); 
                                $schema_version = $root->get_elements_by_tagname('schema_version');
                                $schema_version = $schema_version[0]->get_content();
 
-                               if ($schema_version != SOURCE_SCHEMA_VERSION) {
+                               if ($schema_version != MAX_SOURCE_SCHEMA_VERSION) {
                                        die("Incorrect source schema version");
                                }