summaryrefslogtreecommitdiff
path: root/sql-files/main.sql
diff options
context:
space:
mode:
authorAnnieRuru <jeankof@ymail.com>2015-12-16 13:16:41 +0800
committerHaru <haru@dotalux.com>2016-01-05 15:34:45 +0100
commitf836b4a752de8fd6702fab541a5be25fbd26c0e2 (patch)
tree29cd65058022f903bb45e265150dfdd6490caf77 /sql-files/main.sql
parent7d69fa553131b44752f6b7ea0087617f885b8b8a (diff)
downloadhercules-f836b4a752de8fd6702fab541a5be25fbd26c0e2.tar.gz
hercules-f836b4a752de8fd6702fab541a5be25fbd26c0e2.tar.bz2
hercules-f836b4a752de8fd6702fab541a5be25fbd26c0e2.tar.xz
hercules-f836b4a752de8fd6702fab541a5be25fbd26c0e2.zip
Fix battle config Hp/Sp overflow value
- client can't handle value over 21474836 - SQL also can't save value over 16777215 due to mediumint unsigned Closes #965 as merged Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'sql-files/main.sql')
-rw-r--r--sql-files/main.sql11
1 files changed, 6 insertions, 5 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql
index 7adac433d..042722b7c 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -1,7 +1,7 @@
-- This file is part of Hercules.
-- http://herc.ws - http://github.com/HerculesWS/Hercules
--
--- Copyright (C) 2012-2015 Hercules Dev Team
+-- Copyright (C) 2012-2016 Hercules Dev Team
-- Copyright (C) Athena Dev Teams
--
-- Hercules is free software: you can redistribute it and/or modify
@@ -152,10 +152,10 @@ CREATE TABLE IF NOT EXISTS `char` (
`INT` SMALLINT(4) UNSIGNED NOT NULL DEFAULT '0',
`dex` SMALLINT(4) UNSIGNED NOT NULL DEFAULT '0',
`luk` SMALLINT(4) UNSIGNED NOT NULL DEFAULT '0',
- `max_hp` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
- `hp` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
- `max_sp` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT '0',
- `sp` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT '0',
+ `max_hp` INT(9) UNSIGNED NOT NULL DEFAULT '0',
+ `hp` INT(9) UNSIGNED NOT NULL DEFAULT '0',
+ `max_sp` INT(9) UNSIGNED NOT NULL DEFAULT '0',
+ `sp` INT(9) UNSIGNED NOT NULL DEFAULT '0',
`status_point` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`skill_point` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`option` INT(11) NOT NULL DEFAULT '0',
@@ -822,6 +822,7 @@ INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1414975503); -- 2014-11-0
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1435860840); -- 2015-07-02--18-14.sql
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1436360978); -- 2015-07-08--13-08.sql
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1440688342); -- 2015-08-27--20-42.sql
+INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1450241859); -- 2015-12-16--12-57.sql
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1450367880); -- 2015-12-17--15-58.sql
--