From ced0ece6e1dacfc5b9edaf9473b55945a3320574 Mon Sep 17 00:00:00 2001 From: Smokexyz Date: Wed, 26 Oct 2016 04:01:48 +0530 Subject: zenylog missing type 'K' for Bank Transactions Fixes bug filed here - http://herc.ws/board/topic/13618-db-error-data-truncated-zenylog/ --- sql-files/logs.sql | 2 +- sql-files/main.sql | 1 + sql-files/upgrades/2016-10-26--10-29.sql | 23 +++++++++++++++++++++++ sql-files/upgrades/index.txt | 1 + 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 sql-files/upgrades/2016-10-26--10-29.sql (limited to 'sql-files') diff --git a/sql-files/logs.sql b/sql-files/logs.sql index 71c1ce86b..82c1c944c 100644 --- a/sql-files/logs.sql +++ b/sql-files/logs.sql @@ -167,7 +167,7 @@ CREATE TABLE IF NOT EXISTS `zenylog` ( `time` DATETIME NULL, `char_id` INT(11) NOT NULL DEFAULT '0', `src_id` INT(11) NOT NULL DEFAULT '0', - `type` ENUM('T','V','P','M','S','N','D','C','A','E','I','B') NOT NULL DEFAULT 'S', + `type` ENUM('T','V','P','M','S','N','D','C','A','E','I','B','K') NOT NULL DEFAULT 'S', `amount` INT(11) NOT NULL DEFAULT '0', `map` VARCHAR(11) NOT NULL DEFAULT '', PRIMARY KEY (`id`), diff --git a/sql-files/main.sql b/sql-files/main.sql index 5eac523ed..aa9386179 100644 --- a/sql-files/main.sql +++ b/sql-files/main.sql @@ -829,6 +829,7 @@ INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1457638175); -- 2016-03-1 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 +INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1477434595); -- 2016-10-26--10-29.sql -- -- Table structure for table `storage` diff --git a/sql-files/upgrades/2016-10-26--10-29.sql b/sql-files/upgrades/2016-10-26--10-29.sql new file mode 100644 index 000000000..cabd7db10 --- /dev/null +++ b/sql-files/upgrades/2016-10-26--10-29.sql @@ -0,0 +1,23 @@ +#1477434595 + +-- 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 . + +ALTER TABLE `zenylog` CHANGE `type` `type` ENUM('T','V','P','M','S','N','D','C','A','E','I','B','K') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'S'; + +INSERT INTO `sql_updates` (`timestamp`, `ignored`) VALUES (1477434595 , 'No'); diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt index 0b1051d76..a382f5999 100644 --- a/sql-files/upgrades/index.txt +++ b/sql-files/upgrades/index.txt @@ -33,3 +33,4 @@ 2016-07-08--02-42.sql 2016-07-08--02-51.sql 2016-10-03--20-27.sql +2016-10-26--10-29.sql -- cgit v1.2.3-60-g2f50