summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIbrahem Hossam <ibrahem.h.basyone@gmail.com>2017-01-03 03:13:39 +0200
committerGitHub <noreply@github.com>2017-01-03 03:13:39 +0200
commit01c0080be70d93cd57389b1b01ec694eadf926d2 (patch)
tree39c931e482ed24fed973ef6a932301bc3593b481
parent6dc943463504bf099f43102f20a84cf56cc25784 (diff)
parentced0ece6e1dacfc5b9edaf9473b55945a3320574 (diff)
downloadhercules-01c0080be70d93cd57389b1b01ec694eadf926d2.tar.gz
hercules-01c0080be70d93cd57389b1b01ec694eadf926d2.tar.bz2
hercules-01c0080be70d93cd57389b1b01ec694eadf926d2.tar.xz
hercules-01c0080be70d93cd57389b1b01ec694eadf926d2.zip
Merge pull request #1491 from Smokexyz/patch-1
zenylog missing type 'K' for Bank Transactions
-rw-r--r--sql-files/logs.sql2
-rw-r--r--sql-files/main.sql1
-rw-r--r--sql-files/upgrades/2016-10-26--10-29.sql23
-rw-r--r--sql-files/upgrades/index.txt1
4 files changed, 26 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
+
+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