Pārlūkot izejas kodu

* 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 <house.bad@gmail.com>
Cydh Ramdh 11 gadi atpakaļ
vecāks
revīzija
be516cb53b

+ 1 - 1
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,

+ 1 - 0
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

+ 1 - 1
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,