From f1212444b8c14b37214dc6de3e83f959161b587b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Mar 2017 19:19:29 +0300 Subject: Add new sql update. --- 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 | 2 ++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 sql-files/upgrades/2016-10-26--10-29.sql diff --git a/sql-files/logs.sql b/sql-files/logs.sql index 71c1ce86..82c1c944 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 5eac523e..aa938617 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 00000000..cabd7db1 --- /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 8b2d3c33..dcdf9260 100644 --- a/sql-files/upgrades/index.txt +++ b/sql-files/upgrades/index.txt @@ -31,3 +31,5 @@ 2016-03-10--22-18.sql 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