diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-10-24 18:46:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-10-24 18:46:39 +0300 |
commit | aa2ea303d565ce92ebb7ab2bceddb4f5705bb55a (patch) | |
tree | daf9a912224c0a3ad6c3d5b1443e619372cb1f3a | |
parent | d0d4b284186d64de82da2c67ec0dcfe115f9d136 (diff) | |
download | serverdata-aa2ea303d565ce92ebb7ab2bceddb4f5705bb55a.tar.gz serverdata-aa2ea303d565ce92ebb7ab2bceddb4f5705bb55a.tar.bz2 serverdata-aa2ea303d565ce92ebb7ab2bceddb4f5705bb55a.tar.xz serverdata-aa2ea303d565ce92ebb7ab2bceddb4f5705bb55a.zip |
Add sql update 2016-10-03--20-27.sql
-rw-r--r-- | sql-files/main.sql | 4 | ||||
-rw-r--r-- | sql-files/upgrades/2016-10-03--20-27.sql | 23 |
2 files changed, 26 insertions, 1 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql index fe25fb10..5eac523e 100644 --- a/sql-files/main.sql +++ b/sql-files/main.sql @@ -241,6 +241,7 @@ CREATE TABLE IF NOT EXISTS `charlog` ( `account_id` INT(11) NOT NULL DEFAULT '0', `char_id` INT(11) UNSIGNED NOT NULL DEFAULT '0', `char_num` TINYINT(4) NOT NULL DEFAULT '0', + `class` MEDIUMINT(9) NOT NULL DEFAULT '0', `name` VARCHAR(23) NOT NULL DEFAULT '', `str` INT(11) UNSIGNED NOT NULL DEFAULT '0', `agi` INT(11) UNSIGNED NOT NULL DEFAULT '0', @@ -250,7 +251,7 @@ CREATE TABLE IF NOT EXISTS `charlog` ( `luk` INT(11) UNSIGNED NOT NULL DEFAULT '0', `hair` TINYINT(4) NOT NULL DEFAULT '0', `hair_color` INT(11) NOT NULL DEFAULT '0' -) ENGINE=MyISAM; +) ENGINE=MyISAM; -- -- Table structure for table `elemental` @@ -827,6 +828,7 @@ INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1450367880); -- 2015-12-1 INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1457638175); -- 2016-03-10--22-18.sql INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1467934919); -- 2016-07-08--02-42.sql INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1467935469); -- 2016-07-08--02-51.sql +INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1475526420); -- 2016-10-03--20-27.sql -- -- Table structure for table `storage` diff --git a/sql-files/upgrades/2016-10-03--20-27.sql b/sql-files/upgrades/2016-10-03--20-27.sql new file mode 100644 index 00000000..6ad840e0 --- /dev/null +++ b/sql-files/upgrades/2016-10-03--20-27.sql @@ -0,0 +1,23 @@ +#1475526420 + +-- This file is part of Hercules. +-- http://herc.ws - http://github.com/HerculesWS/Hercules +-- +-- Copyright (C) 2015-2016 Hercules Dev Team +-- +-- Hercules is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program. If not, see <http://www.gnu.org/licenses/>. + +ALTER TABLE `charlog` ADD `class` MEDIUMINT(9) NOT NULL DEFAULT '0' AFTER `char_num`; + +INSERT INTO `sql_updates` (`timestamp`) VALUES (1475526420); |