summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-04-25 02:16:26 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-05 22:24:25 +0300
commitc30d340136982c6b931099ccc6248bcee3d8b693 (patch)
tree554d1a90c90531a73656cdc00ae078d2d46f1608
parent7a95d8dfe44a37759dab2bef67c65ef5f1786ff4 (diff)
downloadhercules-c30d340136982c6b931099ccc6248bcee3d8b693.tar.gz
hercules-c30d340136982c6b931099ccc6248bcee3d8b693.tar.bz2
hercules-c30d340136982c6b931099ccc6248bcee3d8b693.tar.xz
hercules-c30d340136982c6b931099ccc6248bcee3d8b693.zip
Add sql update for guild_expulsion table
Add field char_id into table guild_expulsion.
-rw-r--r--sql-files/main.sql2
-rw-r--r--sql-files/upgrades/2019-04-25--02-12.sql24
-rw-r--r--sql-files/upgrades/index.txt1
3 files changed, 27 insertions, 0 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql
index 5d466f4cd..241efd39b 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -449,6 +449,7 @@ CREATE TABLE IF NOT EXISTS `guild_castle` (
CREATE TABLE IF NOT EXISTS `guild_expulsion` (
`guild_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`account_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
+ `char_id` INT(11) UNSIGNED NOT NULL DEFAULT '0',
`name` VARCHAR(24) NOT NULL DEFAULT '',
`mes` VARCHAR(40) NOT NULL DEFAULT '',
PRIMARY KEY (`guild_id`,`name`)
@@ -926,6 +927,7 @@ INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1535865732); -- 2018-09-0
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1544738447); -- 2018-12-14--01-02.sql
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1546059075); -- 2018-12-29--07-51.sql
INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1554760320); -- 2019-04-08--21-52.sql
+INSERT IGNORE INTO `sql_updates` (`timestamp`) VALUES (1556147483); -- 2019-04-25--02-12.sql
--
-- Table structure for table `storage`
diff --git a/sql-files/upgrades/2019-04-25--02-12.sql b/sql-files/upgrades/2019-04-25--02-12.sql
new file mode 100644
index 000000000..64abe45b6
--- /dev/null
+++ b/sql-files/upgrades/2019-04-25--02-12.sql
@@ -0,0 +1,24 @@
+#1556147483
+
+-- This file is part of Hercules.
+-- http://herc.ws - http://github.com/HerculesWS/Hercules
+--
+-- Copyright (C) 2013-2019 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/>.
+
+TRUNCATE TABLE `guild_expulsion`;
+ALTER TABLE `guild_expulsion` ADD `char_id` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `account_id`;
+
+INSERT INTO `sql_updates` (`timestamp`) VALUES (1556147483);
diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt
index a77a7635f..a820f3b0d 100644
--- a/sql-files/upgrades/index.txt
+++ b/sql-files/upgrades/index.txt
@@ -53,3 +53,4 @@
2018-12-14--01-02.sql
2018-12-29--07-51.sql
2019-04-08--21-52.sql
+2019-04-25--02-12.sql