diff --git a/sql-files/item_db.sql b/sql-files/item_db.sql index 5ff944c684..f305efbafa 100644 --- a/sql-files/item_db.sql +++ b/sql-files/item_db.sql @@ -15,7 +15,7 @@ CREATE TABLE `item_db` ( `defence` smallint(5) unsigned DEFAULT NULL, `range` tinyint(2) unsigned DEFAULT NULL, `slots` tinyint(2) unsigned DEFAULT NULL, - `equip_jobs` int(10) unsigned DEFAULT NULL, + `equip_jobs` bigint(20) unsigned DEFAULT NULL, `equip_upper` tinyint(2) unsigned DEFAULT NULL, `equip_genders` tinyint(1) unsigned DEFAULT NULL, `equip_locations` mediumint(7) unsigned DEFAULT NULL, diff --git a/sql-files/item_db2.sql b/sql-files/item_db2.sql index 6fca4cbf6a..7bb37b7e22 100644 --- a/sql-files/item_db2.sql +++ b/sql-files/item_db2.sql @@ -15,7 +15,7 @@ CREATE TABLE `item_db2` ( `defence` smallint(5) unsigned DEFAULT NULL, `range` tinyint(2) unsigned DEFAULT NULL, `slots` tinyint(2) unsigned DEFAULT NULL, - `equip_jobs` int(10) unsigned DEFAULT NULL, + `equip_jobs` bigint(20) unsigned DEFAULT NULL, `equip_upper` tinyint(2) unsigned DEFAULT NULL, `equip_genders` tinyint(1) unsigned DEFAULT NULL, `equip_locations` mediumint(7) unsigned DEFAULT NULL, diff --git a/sql-files/item_db2_re.sql b/sql-files/item_db2_re.sql index a6d3971a56..ad65339059 100644 --- a/sql-files/item_db2_re.sql +++ b/sql-files/item_db2_re.sql @@ -15,7 +15,7 @@ CREATE TABLE `item_db2_re` ( `defence` smallint(5) unsigned DEFAULT NULL, `range` tinyint(2) unsigned DEFAULT NULL, `slots` tinyint(2) unsigned DEFAULT NULL, - `equip_jobs` int(10) unsigned DEFAULT NULL, + `equip_jobs` bigint(20) unsigned DEFAULT NULL, `equip_upper` tinyint(2) unsigned DEFAULT NULL, `equip_genders` tinyint(1) unsigned DEFAULT NULL, `equip_locations` mediumint(7) unsigned DEFAULT NULL, diff --git a/sql-files/item_db_re.sql b/sql-files/item_db_re.sql index ceb6ab7af3..7b052b5f97 100644 --- a/sql-files/item_db_re.sql +++ b/sql-files/item_db_re.sql @@ -15,7 +15,7 @@ CREATE TABLE `item_db_re` ( `defence` smallint(5) unsigned DEFAULT NULL, `range` tinyint(2) unsigned DEFAULT NULL, `slots` tinyint(2) unsigned DEFAULT NULL, - `equip_jobs` int(10) unsigned DEFAULT NULL, + `equip_jobs` bigint(20) unsigned DEFAULT NULL, `equip_upper` tinyint(2) unsigned DEFAULT NULL, `equip_genders` tinyint(1) unsigned DEFAULT NULL, `equip_locations` mediumint(7) unsigned DEFAULT NULL, diff --git a/sql-files/upgrades/upgrade_20160614.sql b/sql-files/upgrades/upgrade_20160614.sql new file mode 100644 index 0000000000..823e2be432 --- /dev/null +++ b/sql-files/upgrades/upgrade_20160614.sql @@ -0,0 +1,7 @@ +ALTER TABLE `item_db` MODIFY COLUMN `equip_jobs` bigint(20) unsigned DEFAULT NULL; + +ALTER TABLE `item_db_re` MODIFY COLUMN `equip_jobs` bigint(20) unsigned DEFAULT NULL; + +ALTER TABLE `item_db2` MODIFY COLUMN `equip_jobs` bigint(20) unsigned DEFAULT NULL; + +ALTER TABLE `item_db2_re` MODIFY COLUMN `equip_jobs` bigint(20) unsigned DEFAULT NULL; diff --git a/src/map/itemdb.c b/src/map/itemdb.c index e0e27a1fc5..24b39a8b79 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -1280,7 +1280,7 @@ static bool itemdb_parse_dbrow(char** str, const char* source, int line, int scr id->slot = MAX_SLOTS; } - itemdb_jobid2mapid(id->class_base, (unsigned int)strtoul(str[11],NULL,0)); + itemdb_jobid2mapid(id->class_base, (uint64)strtoul(str[11],NULL,0)); id->class_upper = atoi(str[12]); id->sex = atoi(str[13]); id->equip = atoi(str[14]);