diff options
author | Andrew Dolgov <[email protected]> | 2005-12-02 09:13:10 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-12-02 09:13:10 +0100 |
commit | db22a6e9b87e3dfd6eb82c7df8849dc4595641cf (patch) | |
tree | 79316baf0bd0e15c2eda7e8116a019e21920b4c8 | |
parent | 88feb4421685eec58e9f75e01f1661bd0313317a (diff) |
allow import of schema_version=2 xml db
-rw-r--r-- | xml-import.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xml-import.php b/xml-import.php index d35c01a9f..04f3ee39e 100644 --- a/xml-import.php +++ b/xml-import.php @@ -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); @@ -155,7 +155,7 @@ $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"); } |