summaryrefslogtreecommitdiff
path: root/sql-files/upgrades/eAthena-logs-upgrade.sql
diff options
context:
space:
mode:
authormaqc1 <alex--223@hotmail.com>2015-12-13 21:12:32 -0500
committerHaru <haru@dotalux.com>2015-12-20 18:21:58 +0100
commitb9c2af357dba7a6281f32517603b49e2cb682c53 (patch)
tree1c750549f1f12c97f02bbfd9cce30122c32d1c49 /sql-files/upgrades/eAthena-logs-upgrade.sql
parent62bafa089bab20c641a48855a1ed6d9aa6c3aad4 (diff)
downloadhercules-b9c2af357dba7a6281f32517603b49e2cb682c53.tar.gz
hercules-b9c2af357dba7a6281f32517603b49e2cb682c53.tar.bz2
hercules-b9c2af357dba7a6281f32517603b49e2cb682c53.tar.xz
hercules-b9c2af357dba7a6281f32517603b49e2cb682c53.zip
Split eathena-upgrade in two files
Split eathena-upgrade in two files, one for main and one for logs (as is it for rAthena-upgrade) Closes #946 as merged
Diffstat (limited to 'sql-files/upgrades/eAthena-logs-upgrade.sql')
-rw-r--r--sql-files/upgrades/eAthena-logs-upgrade.sql44
1 files changed, 44 insertions, 0 deletions
diff --git a/sql-files/upgrades/eAthena-logs-upgrade.sql b/sql-files/upgrades/eAthena-logs-upgrade.sql
new file mode 100644
index 000000000..09ed4d8d0
--- /dev/null
+++ b/sql-files/upgrades/eAthena-logs-upgrade.sql
@@ -0,0 +1,44 @@
+-- This file is part of Hercules.
+-- http://herc.ws - http://github.com/HerculesWS/Hercules
+--
+-- Copyright (C) 2013-2015 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/>.
+
+--
+-- Upgrade file to be used when going from eAthena to Hercules
+-- Note: If you're not up to date with eAthena, go through their upgrade files first and run them before this file.
+-- Note: After runing this file run Hercules upgrade files.
+--
+
+-- Adds 'I' and 'X' to `type` in `picklog` table
+ALTER TABLE `picklog` MODIFY `type` ENUM('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X') NOT NULL DEFAULT 'P';
+
+-- Adds 'D' and 'U' to `type` in `picklog` table
+ALTER TABLE `picklog` MODIFY `type` ENUM('M','P','L','T','V','S','N','C','A','R','G','E','B','O','I','X','D','U') NOT NULL DEFAULT 'P';
+
+-- Adds unique ID to `picklog` table
+ALTER TABLE `picklog` ADD `nsiuid` BIGINT NOT NULL DEFAULT '0' AFTER `card3`;
+
+-- Change `nsiuid` to BIGINT(20)
+ALTER TABLE `picklog` CHANGE `nsiuid` `unique_id` BIGINT( 20 ) NOT NULL DEFAULT '0';
+
+-- Adds 'I' to `type` in `zenylog`
+ALTER TABLE `zenylog` MODIFY `type` ENUM('M','T','V','S','N','A','E','B','I') NOT NULL DEFAULT 'S';
+
+-- Adds 'D' to `type` in `zenylog`
+ALTER TABLE `zenylog` MODIFY `type` ENUM('M','T','V','S','N','A','E','B','I','D') NOT NULL DEFAULT 'S';
+
+-- Add 'P' and 'C' types in `zenylog`
+ALTER TABLE `zenylog` MODIFY `type` ENUM('T','V','P','M','S','N','D','C','A','E','I','B') NOT NULL DEFAULT 'S';