Browse Source

Added missing increase of the versioning (#7220)

Follow up https://github.com/rathena/rathena/commit/17751aa4d71d85a35a498e4c1677b9ee9d26331a
Atemo 2 years ago
parent
commit
7c3bb6124a

+ 1 - 1
db/import-tmpl/item_db.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 #Body:
 # THQ Quest Items

+ 1 - 1
db/item_db.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 Footer:
   Imports:

+ 1 - 1
db/pre-re/item_db.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 Footer:
   Imports:

+ 1 - 1
db/pre-re/item_db_equip.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 Body:
   - Id: 1101

+ 1 - 1
db/pre-re/item_db_etc.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 Body:
   - Id: 670

+ 1 - 1
db/pre-re/item_db_usable.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 Body:
   - Id: 501

+ 1 - 1
db/re/item_db.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 Footer:
   Imports:

+ 1 - 1
db/re/item_db_equip.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 Body:
   - Id: 1101

+ 1 - 1
db/re/item_db_etc.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 Body:
   - Id: 670

+ 1 - 1
db/re/item_db_usable.yml

@@ -86,7 +86,7 @@
 
 Header:
   Type: ITEM_DB
-  Version: 2
+  Version: 3
 
 Body:
   - Id: 500

+ 1 - 1
src/map/itemdb.hpp

@@ -1294,7 +1294,7 @@ private:
 	e_sex defaultGender( const ryml::NodeRef& node, std::shared_ptr<item_data> id );
 
 public:
-	ItemDatabase() : TypesafeCachedYamlDatabase("ITEM_DB", 2, 1) {
+	ItemDatabase() : TypesafeCachedYamlDatabase("ITEM_DB", 3, 1) {
 
 	}
 

+ 2 - 2
src/tool/csv2yaml.cpp

@@ -301,14 +301,14 @@ int do_init( int argc, char** argv ){
 	}
 
 	item_txt_data(path_db_mode, path_db);
-	if (!process("ITEM_DB", 2, { path_db_mode }, "item_db", [](const std::string& path, const std::string& name_ext) -> bool {
+	if (!process("ITEM_DB", 3, { path_db_mode }, "item_db", [](const std::string& path, const std::string& name_ext) -> bool {
 		return itemdb_read_db((path + name_ext).c_str());
 	})) {
 		return 0;
 	}
 
 	item_txt_data(path_db_import, path_db_import);
-	if (!process("ITEM_DB", 2, { path_db_import }, "item_db", [](const std::string& path, const std::string& name_ext) -> bool {
+	if (!process("ITEM_DB", 3, { path_db_import }, "item_db", [](const std::string& path, const std::string& name_ext) -> bool {
 		return itemdb_read_db((path + name_ext).c_str());
 	})) {
 		return 0;

+ 1 - 1
src/tool/yamlupgrade.cpp

@@ -110,7 +110,7 @@ int do_init(int argc, char** argv) {
 		return 0;
 	}
 
-	if (!process("ITEM_DB", 2, root_paths, "item_db", [](const std::string& path, const std::string& name_ext, uint32 source_version) -> bool {
+	if (!process("ITEM_DB", 3, root_paths, "item_db", [](const std::string& path, const std::string& name_ext, uint32 source_version) -> bool {
 		return upgrade_item_db(path + name_ext, source_version);
 		})) {
 		return 0;