From be516cb53bf1ae3b5fa1b30859a6c79544c1ad2d Mon Sep 17 00:00:00 2001 From: Cydh Ramdh Date: Sat, 4 Jan 2014 21:51:12 +0700 Subject: [PATCH] * Fixed bugreport http://rathena.org/board/tracker/issue-8408-script-line-931-data-too-long-for-column-atkmatk-at-row-1/ Signed-off-by: Cydh Ramdh --- sql-files/item_db_re.sql | 2 +- sql-files/upgrades/upgrade_20140104.sql | 1 + tools/convert_sql.pl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 sql-files/upgrades/upgrade_20140104.sql 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,