diff --git a/sql-files/item_db_re.sql b/sql-files/item_db_re.sql index 1f015c9a96..02a402e699 100644 --- a/sql-files/item_db_re.sql +++ b/sql-files/item_db_re.sql @@ -11,7 +11,7 @@ CREATE TABLE `item_db_re` ( `price_buy` mediumint(8) unsigned DEFAULT NULL, `price_sell` mediumint(8) unsigned DEFAULT NULL, `weight` smallint(5) unsigned NOT NULL DEFAULT '0', - `atk:matk` varchar(10) DEFAULT NULL, + `atk:matk` varchar(11) DEFAULT NULL, `defence` smallint(5) unsigned DEFAULT NULL, `range` tinyint(2) unsigned DEFAULT NULL, `slots` tinyint(2) unsigned DEFAULT NULL, diff --git a/sql-files/upgrades/upgrade_20140104.sql b/sql-files/upgrades/upgrade_20140104.sql new file mode 100644 index 0000000000..a1f181172a --- /dev/null +++ b/sql-files/upgrades/upgrade_20140104.sql @@ -0,0 +1 @@ +ALTER TABLE `item_db_re` CHANGE `atk:matk` `atk:matk` VARCHAR( 11 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL diff --git a/tools/convert_sql.pl b/tools/convert_sql.pl index f903a53456..fa1254a3f3 100755 --- a/tools/convert_sql.pl +++ b/tools/convert_sql.pl @@ -245,7 +245,7 @@ CREATE TABLE `$db` ( `price_buy` mediumint(8) unsigned DEFAULT NULL, `price_sell` mediumint(8) unsigned DEFAULT NULL, `weight` smallint(5) unsigned NOT NULL DEFAULT '0', - `atk:matk` varchar(10) DEFAULT NULL, + `atk:matk` varchar(11) DEFAULT NULL, `defence` smallint(5) unsigned DEFAULT NULL, `range` tinyint(2) unsigned DEFAULT NULL, `slots` tinyint(2) unsigned DEFAULT NULL,