Skip to content

Commit

Permalink
* Follow up to bd2503e and 7355677
Browse files Browse the repository at this point in the history
-- Modified field data of `equip_locations` to mediumint
-- Updated converter tool for item_db following this update
-- Updated item_db.sql, item_db2.sql, item_db_re.sql, item_db_re2.sql
-- CAUTION: Please update item_db MySQL tables by using 'upgrade_20131115_2.sql'

Signed-off-by: Cahyadi Ramadhan Togihon <house.bad@gmail.com>
  • Loading branch information
cydh committed Nov 15, 2013
1 parent 7355677 commit fef6307
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sql-files/item_db.sql
Expand Up @@ -18,7 +18,7 @@ CREATE TABLE `item_db` (
`equip_jobs` int(12) unsigned default NULL,
`equip_upper` tinyint(8) unsigned default NULL,
`equip_genders` tinyint(2) unsigned default NULL,
`equip_locations` smallint(4) unsigned default NULL,
`equip_locations` mediumint(7) unsigned default NULL,
`weapon_level` tinyint(2) unsigned default NULL,
`equip_level` tinyint(3) unsigned default NULL,
`refineable` tinyint(1) unsigned default NULL,
Expand Down
2 changes: 1 addition & 1 deletion sql-files/item_db2.sql
Expand Up @@ -18,7 +18,7 @@ CREATE TABLE `item_db2` (
`equip_jobs` int(12) unsigned default NULL,
`equip_upper` tinyint(8) unsigned default NULL,
`equip_genders` tinyint(2) unsigned default NULL,
`equip_locations` smallint(4) unsigned default NULL,
`equip_locations` mediumint(7) unsigned default NULL,
`weapon_level` tinyint(2) unsigned default NULL,
`equip_level` tinyint(3) unsigned default NULL,
`refineable` tinyint(1) unsigned default NULL,
Expand Down
2 changes: 1 addition & 1 deletion sql-files/item_db2_re.sql
Expand Up @@ -18,7 +18,7 @@ CREATE TABLE `item_db2` (
`equip_jobs` int(12) unsigned default NULL,
`equip_upper` tinyint(8) unsigned default NULL,
`equip_genders` tinyint(2) unsigned default NULL,
`equip_locations` smallint(4) unsigned default NULL,
`equip_locations` mediumint(7) unsigned default NULL,
`weapon_level` tinyint(2) unsigned default NULL,
`equip_level` varchar(10) default '',
`refineable` tinyint(1) unsigned default NULL,
Expand Down
2 changes: 1 addition & 1 deletion sql-files/item_db_re.sql
Expand Up @@ -18,7 +18,7 @@ CREATE TABLE `item_db_re` (
`equip_jobs` int(12) unsigned default NULL,
`equip_upper` tinyint(8) unsigned default NULL,
`equip_genders` tinyint(2) unsigned default NULL,
`equip_locations` smallint(4) unsigned default NULL,
`equip_locations` mediumint(7) unsigned default NULL,
`weapon_level` tinyint(2) unsigned default NULL,
`equip_level` varchar(10) default '',
`refineable` tinyint(1) unsigned default NULL,
Expand Down
3 changes: 3 additions & 0 deletions sql-files/upgrades/upgrade_20131115_2.sql
@@ -0,0 +1,3 @@
ALTER TABLE `item_db` CHANGE `equip_locations` `equip_locations` MEDIUMINT( 7 ) UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `item_db_re` CHANGE `equip_locations` `equip_locations` MEDIUMINT( 7 ) UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `item_db2` CHANGE `equip_locations` `equip_locations` MEDIUMINT( 7 ) UNSIGNED NULL DEFAULT NULL;
4 changes: 2 additions & 2 deletions tools/convert_sql.pl
Expand Up @@ -207,7 +207,7 @@ sub Main {
`equip_jobs` int(12) unsigned default NULL,
`equip_upper` tinyint(8) unsigned default NULL,
`equip_genders` tinyint(2) unsigned default NULL,
`equip_locations` smallint(4) unsigned default NULL,
`equip_locations` mediumint(7) unsigned default NULL,
`weapon_level` tinyint(2) unsigned default NULL,
`equip_level` tinyint(3) unsigned default NULL,
`refineable` tinyint(1) unsigned default NULL,
Expand Down Expand Up @@ -249,7 +249,7 @@ sub Main {
`equip_jobs` int(12) unsigned default NULL,
`equip_upper` tinyint(8) unsigned default NULL,
`equip_genders` tinyint(2) unsigned default NULL,
`equip_locations` smallint(4) unsigned default NULL,
`equip_locations` mediumint(7) unsigned default NULL,
`weapon_level` tinyint(2) unsigned default NULL,
`equip_level` varchar(10) default '',
`refineable` tinyint(1) unsigned default NULL,
Expand Down

2 comments on commit fef6307

@CairoLee
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for fix it!

@cydh
Copy link
Contributor Author

@cydh cydh commented on fef6307 Nov 15, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't matter. 👍

Please sign in to comment.