From 3136a514a17ff9874b458673ca3f89bad8e75ce8 Mon Sep 17 00:00:00 2001
From: Akkarinage <mike.langford@live.co.uk>
Date: Fri, 14 Jun 2013 21:27:02 +0100
Subject: Whitespace, TABs & Spellings

Replaced indents using spaces with tabs, reducing file sizes and
conforming to standards.
---
 sql-files/tools/convert_engine_innodb.sql | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'sql-files/tools/convert_engine_innodb.sql')

diff --git a/sql-files/tools/convert_engine_innodb.sql b/sql-files/tools/convert_engine_innodb.sql
index fcb240bb1..5d74b9309 100644
--- a/sql-files/tools/convert_engine_innodb.sql
+++ b/sql-files/tools/convert_engine_innodb.sql
@@ -1,11 +1,12 @@
 --
--- rAthena Database Converter ( MyISAM -> InnoDB )
+-- Hercules Database Converter ( MyISAM -> InnoDB )
 --
 
 ALTER TABLE `auction` ENGINE = InnoDB;
 ALTER TABLE `cart_inventory` ENGINE = InnoDB;
 ALTER TABLE `char` ENGINE = InnoDB;
 ALTER TABLE `charlog` ENGINE = InnoDB;
+ALTER TABLE `elemental` ENGINE = InnoDB;
 ALTER TABLE `friends` ENGINE = InnoDB;
 ALTER TABLE `global_reg_value` ENGINE = InnoDB;
 ALTER TABLE `guild` ENGINE = InnoDB;
@@ -19,6 +20,7 @@ ALTER TABLE `guild_storage` ENGINE = InnoDB;
 ALTER TABLE `homunculus` ENGINE = InnoDB;
 ALTER TABLE `hotkey` ENGINE = InnoDB;
 ALTER TABLE `interlog` ENGINE = InnoDB;
+ALTER TABLE `intereg` ENGINE = InnoDB;
 ALTER TABLE `inventory` ENGINE = InnoDB;
 ALTER TABLE `ipbanlist` ENGINE = InnoDB;
 #ALTER TABLE `item_db` ENGINE = InnoDB;
@@ -38,5 +40,6 @@ ALTER TABLE `ragsrvinfo` ENGINE = InnoDB;
 ALTER TABLE `sc_data` ENGINE = InnoDB;
 ALTER TABLE `skill` ENGINE = InnoDB;
 ALTER TABLE `skill_homunculus` ENGINE = InnoDB;
+ALTER TABLE `sql_updates` ENGINE = InnoDB;
 ALTER TABLE `sstatus` ENGINE = InnoDB;
 ALTER TABLE `storage` ENGINE = InnoDB;
-- 
cgit v1.2.3-70-g09d2


From c2293db51e75278b2303b0f0f5a1032f9e54cf7e Mon Sep 17 00:00:00 2001
From: "Mr.Postman" <MrPostman@windowslive.com>
Date: Sun, 14 Jul 2013 07:19:36 +0700
Subject: Fixed missing  table

---
 sql-files/tools/convert_engine_innodb.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sql-files/tools/convert_engine_innodb.sql')

diff --git a/sql-files/tools/convert_engine_innodb.sql b/sql-files/tools/convert_engine_innodb.sql
index 5d74b9309..71b58fd34 100644
--- a/sql-files/tools/convert_engine_innodb.sql
+++ b/sql-files/tools/convert_engine_innodb.sql
@@ -20,7 +20,7 @@ ALTER TABLE `guild_storage` ENGINE = InnoDB;
 ALTER TABLE `homunculus` ENGINE = InnoDB;
 ALTER TABLE `hotkey` ENGINE = InnoDB;
 ALTER TABLE `interlog` ENGINE = InnoDB;
-ALTER TABLE `intereg` ENGINE = InnoDB;
+ALTER TABLE `interreg` ENGINE = InnoDB;
 ALTER TABLE `inventory` ENGINE = InnoDB;
 ALTER TABLE `ipbanlist` ENGINE = InnoDB;
 #ALTER TABLE `item_db` ENGINE = InnoDB;
-- 
cgit v1.2.3-70-g09d2


From 53c0e46ed711755a5c3a06bad4263a80089b3b2f Mon Sep 17 00:00:00 2001
From: panikon <panikon@zoho.com>
Date: Tue, 1 Apr 2014 18:56:31 -0300
Subject: Fixed issue 8128 - Updated and reorganized MySQL engine converters
 http://hercules.ws/board/tracker/issue-8128-missing-update-to-tables-in-tools/

---
 sql-files/tools/convert_engine_innodb.sql | 23 ++++++++++++++++++-----
 sql-files/tools/convert_engine_myisam.sql | 19 ++++++++++++++-----
 2 files changed, 32 insertions(+), 10 deletions(-)

(limited to 'sql-files/tools/convert_engine_innodb.sql')

diff --git a/sql-files/tools/convert_engine_innodb.sql b/sql-files/tools/convert_engine_innodb.sql
index 71b58fd34..5cf74d355 100644
--- a/sql-files/tools/convert_engine_innodb.sql
+++ b/sql-files/tools/convert_engine_innodb.sql
@@ -8,7 +8,7 @@ ALTER TABLE `char` ENGINE = InnoDB;
 ALTER TABLE `charlog` ENGINE = InnoDB;
 ALTER TABLE `elemental` ENGINE = InnoDB;
 ALTER TABLE `friends` ENGINE = InnoDB;
-ALTER TABLE `global_reg_value` ENGINE = InnoDB;
+ALTER TABLE `hotkey` ENGINE = InnoDB;
 ALTER TABLE `guild` ENGINE = InnoDB;
 ALTER TABLE `guild_alliance` ENGINE = InnoDB;
 ALTER TABLE `guild_castle` ENGINE = InnoDB;
@@ -18,16 +18,15 @@ ALTER TABLE `guild_position` ENGINE = InnoDB;
 ALTER TABLE `guild_skill` ENGINE = InnoDB;
 ALTER TABLE `guild_storage` ENGINE = InnoDB;
 ALTER TABLE `homunculus` ENGINE = InnoDB;
-ALTER TABLE `hotkey` ENGINE = InnoDB;
 ALTER TABLE `interlog` ENGINE = InnoDB;
-ALTER TABLE `interreg` ENGINE = InnoDB;
 ALTER TABLE `inventory` ENGINE = InnoDB;
 ALTER TABLE `ipbanlist` ENGINE = InnoDB;
 #ALTER TABLE `item_db` ENGINE = InnoDB;
 #ALTER TABLE `item_db2` ENGINE = InnoDB;
 ALTER TABLE `login` ENGINE = InnoDB;
-ALTER TABLE `mail` ENGINE = InnoDB;
 ALTER TABLE `mapreg` ENGINE = InnoDB;
+ALTER TABLE `sc_data` ENGINE = InnoDB;
+ALTER TABLE `mail` ENGINE = InnoDB;
 ALTER TABLE `memo` ENGINE = InnoDB;
 ALTER TABLE `mercenary` ENGINE = InnoDB;
 ALTER TABLE `mercenary_owner` ENGINE = InnoDB;
@@ -37,9 +36,23 @@ ALTER TABLE `party` ENGINE = InnoDB;
 ALTER TABLE `pet` ENGINE = InnoDB;
 ALTER TABLE `quest` ENGINE = InnoDB;
 ALTER TABLE `ragsrvinfo` ENGINE = InnoDB;
-ALTER TABLE `sc_data` ENGINE = InnoDB;
 ALTER TABLE `skill` ENGINE = InnoDB;
 ALTER TABLE `skill_homunculus` ENGINE = InnoDB;
 ALTER TABLE `sql_updates` ENGINE = InnoDB;
 ALTER TABLE `sstatus` ENGINE = InnoDB;
 ALTER TABLE `storage` ENGINE = InnoDB;
+ALTER TABLE `interreg` ENGINE = InnoDB;
+
+ALTER TABLE `account_data` ENGINE = InnoDB;
+ALTER TABLE `npc_market_data` ENGINE = InnoDB;
+ALTER TABLE `acc_reg_num_db` ENGINE = InnoDB;
+ALTER TABLE `acc_reg_str_db` ENGINE = InnoDB;
+ALTER TABLE `char_reg_num_db` ENGINE = InnoDB;
+ALTER TABLE `char_reg_str_db` ENGINE = InnoDB;
+ALTER TABLE `global_acc_reg_num_db` ENGINE = InnoDB;
+ALTER TABLE `global_acc_reg_str_db` ENGINE = InnoDB;
+ALTER TABLE `autotrade_merchants` ENGINE = InnoDB;
+ALTER TABLE `autotrade_data` ENGINE = InnoDB;
+
+
+
diff --git a/sql-files/tools/convert_engine_myisam.sql b/sql-files/tools/convert_engine_myisam.sql
index a05163f85..7afa7008d 100644
--- a/sql-files/tools/convert_engine_myisam.sql
+++ b/sql-files/tools/convert_engine_myisam.sql
@@ -8,7 +8,7 @@ ALTER TABLE `char` ENGINE = MyISAM;
 ALTER TABLE `charlog` ENGINE = MyISAM;
 ALTER TABLE `elemental` ENGINE = MyISAM;
 ALTER TABLE `friends` ENGINE = MyISAM;
-ALTER TABLE `global_reg_value` ENGINE = MyISAM;
+ALTER TABLE `hotkey` ENGINE = MyISAM;
 ALTER TABLE `guild` ENGINE = MyISAM;
 ALTER TABLE `guild_alliance` ENGINE = MyISAM;
 ALTER TABLE `guild_castle` ENGINE = MyISAM;
@@ -18,16 +18,15 @@ ALTER TABLE `guild_position` ENGINE = MyISAM;
 ALTER TABLE `guild_skill` ENGINE = MyISAM;
 ALTER TABLE `guild_storage` ENGINE = MyISAM;
 ALTER TABLE `homunculus` ENGINE = MyISAM;
-ALTER TABLE `hotkey` ENGINE = MyISAM;
 ALTER TABLE `interlog` ENGINE = MyISAM;
-ALTER TABLE `intereg` ENGINE = MyISAM;
 ALTER TABLE `inventory` ENGINE = MyISAM;
 ALTER TABLE `ipbanlist` ENGINE = MyISAM;
 #ALTER TABLE `item_db` ENGINE = MyISAM;
 #ALTER TABLE `item_db2` ENGINE = MyISAM;
 ALTER TABLE `login` ENGINE = MyISAM;
-ALTER TABLE `mail` ENGINE = MyISAM;
 ALTER TABLE `mapreg` ENGINE = MyISAM;
+ALTER TABLE `sc_data` ENGINE = MyISAM;
+ALTER TABLE `mail` ENGINE = MyISAM;
 ALTER TABLE `memo` ENGINE = MyISAM;
 ALTER TABLE `mercenary` ENGINE = MyISAM;
 ALTER TABLE `mercenary_owner` ENGINE = MyISAM;
@@ -37,9 +36,19 @@ ALTER TABLE `party` ENGINE = MyISAM;
 ALTER TABLE `pet` ENGINE = MyISAM;
 ALTER TABLE `quest` ENGINE = MyISAM;
 ALTER TABLE `ragsrvinfo` ENGINE = MyISAM;
-ALTER TABLE `sc_data` ENGINE = MyISAM;
 ALTER TABLE `skill` ENGINE = MyISAM;
 ALTER TABLE `skill_homunculus` ENGINE = MyISAM;
 ALTER TABLE `sql_updates` ENGINE = MyISAM;
 ALTER TABLE `sstatus` ENGINE = MyISAM;
 ALTER TABLE `storage` ENGINE = MyISAM;
+ALTER TABLE `interreg` ENGINE = MyISAM;
+ALTER TABLE `account_data` ENGINE = MyISAM;
+ALTER TABLE `npc_market_data` ENGINE = MyISAM;
+ALTER TABLE `acc_reg_num_db` ENGINE = MyISAM;
+ALTER TABLE `acc_reg_str_db` ENGINE = MyISAM;
+ALTER TABLE `char_reg_num_db` ENGINE = MyISAM;
+ALTER TABLE `char_reg_str_db` ENGINE = MyISAM;
+ALTER TABLE `global_acc_reg_num_db` ENGINE = MyISAM;
+ALTER TABLE `global_acc_reg_str_db` ENGINE = MyISAM;
+ALTER TABLE `autotrade_merchants` ENGINE = MyISAM;
+ALTER TABLE `autotrade_data` ENGINE = MyISAM;
-- 
cgit v1.2.3-70-g09d2


From 3213a3b913ce11c6466f94388e3853232673c45b Mon Sep 17 00:00:00 2001
From: Shido <the.keikun@gmail.com>
Date: Fri, 30 May 2014 10:14:31 +0800
Subject: Organized sql-tools.

---
 sql-files/tools/convert_engine_innodb.sql | 34 +++++++++++++++----------------
 sql-files/tools/convert_engine_myisam.sql | 32 +++++++++++++++--------------
 sql-files/tools/convert_passwords.sql     |  2 +-
 3 files changed, 34 insertions(+), 34 deletions(-)

(limited to 'sql-files/tools/convert_engine_innodb.sql')

diff --git a/sql-files/tools/convert_engine_innodb.sql b/sql-files/tools/convert_engine_innodb.sql
index 5cf74d355..0b7270174 100644
--- a/sql-files/tools/convert_engine_innodb.sql
+++ b/sql-files/tools/convert_engine_innodb.sql
@@ -1,14 +1,24 @@
 --
--- Hercules Database Converter ( MyISAM -> InnoDB )
+-- Hercules Database Converter 
+-- MyISAM Engine -> InnoDB Engine
 --
 
+ALTER TABLE `account_data` ENGINE = InnoDB;
+ALTER TABLE `acc_reg_num_db` ENGINE = InnoDB;
+ALTER TABLE `acc_reg_str_db` ENGINE = InnoDB;
 ALTER TABLE `auction` ENGINE = InnoDB;
+ALTER TABLE `autotrade_data` ENGINE = InnoDB;
+ALTER TABLE `autotrade_merchants` ENGINE = InnoDB;
 ALTER TABLE `cart_inventory` ENGINE = InnoDB;
 ALTER TABLE `char` ENGINE = InnoDB;
+ALTER TABLE `char_reg_num_db` ENGINE = InnoDB;
+ALTER TABLE `char_reg_str_db` ENGINE = InnoDB;
 ALTER TABLE `charlog` ENGINE = InnoDB;
 ALTER TABLE `elemental` ENGINE = InnoDB;
 ALTER TABLE `friends` ENGINE = InnoDB;
 ALTER TABLE `hotkey` ENGINE = InnoDB;
+ALTER TABLE `global_acc_reg_num_db` ENGINE = InnoDB;
+ALTER TABLE `global_acc_reg_str_db` ENGINE = InnoDB;
 ALTER TABLE `guild` ENGINE = InnoDB;
 ALTER TABLE `guild_alliance` ENGINE = InnoDB;
 ALTER TABLE `guild_castle` ENGINE = InnoDB;
@@ -21,8 +31,8 @@ ALTER TABLE `homunculus` ENGINE = InnoDB;
 ALTER TABLE `interlog` ENGINE = InnoDB;
 ALTER TABLE `inventory` ENGINE = InnoDB;
 ALTER TABLE `ipbanlist` ENGINE = InnoDB;
-#ALTER TABLE `item_db` ENGINE = InnoDB;
-#ALTER TABLE `item_db2` ENGINE = InnoDB;
+-- ALTER TABLE `item_db` ENGINE = InnoDB;
+-- ALTER TABLE `item_db2` ENGINE = InnoDB;
 ALTER TABLE `login` ENGINE = InnoDB;
 ALTER TABLE `mapreg` ENGINE = InnoDB;
 ALTER TABLE `sc_data` ENGINE = InnoDB;
@@ -30,8 +40,9 @@ ALTER TABLE `mail` ENGINE = InnoDB;
 ALTER TABLE `memo` ENGINE = InnoDB;
 ALTER TABLE `mercenary` ENGINE = InnoDB;
 ALTER TABLE `mercenary_owner` ENGINE = InnoDB;
-#ALTER TABLE `mob_db` ENGINE = InnoDB;
-#ALTER TABLE `mob_db2` ENGINE = InnoDB;
+-- ALTER TABLE `mob_db` ENGINE = InnoDB;
+-- ALTER TABLE `mob_db2` ENGINE = InnoDB;
+ALTER TABLE `npc_market_data` ENGINE = InnoDB;
 ALTER TABLE `party` ENGINE = InnoDB;
 ALTER TABLE `pet` ENGINE = InnoDB;
 ALTER TABLE `quest` ENGINE = InnoDB;
@@ -43,16 +54,3 @@ ALTER TABLE `sstatus` ENGINE = InnoDB;
 ALTER TABLE `storage` ENGINE = InnoDB;
 ALTER TABLE `interreg` ENGINE = InnoDB;
 
-ALTER TABLE `account_data` ENGINE = InnoDB;
-ALTER TABLE `npc_market_data` ENGINE = InnoDB;
-ALTER TABLE `acc_reg_num_db` ENGINE = InnoDB;
-ALTER TABLE `acc_reg_str_db` ENGINE = InnoDB;
-ALTER TABLE `char_reg_num_db` ENGINE = InnoDB;
-ALTER TABLE `char_reg_str_db` ENGINE = InnoDB;
-ALTER TABLE `global_acc_reg_num_db` ENGINE = InnoDB;
-ALTER TABLE `global_acc_reg_str_db` ENGINE = InnoDB;
-ALTER TABLE `autotrade_merchants` ENGINE = InnoDB;
-ALTER TABLE `autotrade_data` ENGINE = InnoDB;
-
-
-
diff --git a/sql-files/tools/convert_engine_myisam.sql b/sql-files/tools/convert_engine_myisam.sql
index 7afa7008d..e87037134 100644
--- a/sql-files/tools/convert_engine_myisam.sql
+++ b/sql-files/tools/convert_engine_myisam.sql
@@ -1,14 +1,24 @@
 --
--- Hercules Database Converter ( InnoDB -> MyISAM )
+-- Hercules Database Converter 
+-- InnoDB Engine -> MyISAM Engine
 --
 
+ALTER TABLE `account_data` ENGINE = MyISAM;
+ALTER TABLE `acc_reg_num_db` ENGINE = MyISAM;
+ALTER TABLE `acc_reg_str_db` ENGINE = MyISAM;
 ALTER TABLE `auction` ENGINE = MyISAM;
+ALTER TABLE `autotrade_data` ENGINE = MyISAM;
+ALTER TABLE `autotrade_merchants` ENGINE = MyISAM;
 ALTER TABLE `cart_inventory` ENGINE = MyISAM;
 ALTER TABLE `char` ENGINE = MyISAM;
+ALTER TABLE `char_reg_num_db` ENGINE = MyISAM;
+ALTER TABLE `char_reg_str_db` ENGINE = MyISAM;
 ALTER TABLE `charlog` ENGINE = MyISAM;
 ALTER TABLE `elemental` ENGINE = MyISAM;
 ALTER TABLE `friends` ENGINE = MyISAM;
 ALTER TABLE `hotkey` ENGINE = MyISAM;
+ALTER TABLE `global_acc_reg_num_db` ENGINE = MyISAM;
+ALTER TABLE `global_acc_reg_str_db` ENGINE = MyISAM;
 ALTER TABLE `guild` ENGINE = MyISAM;
 ALTER TABLE `guild_alliance` ENGINE = MyISAM;
 ALTER TABLE `guild_castle` ENGINE = MyISAM;
@@ -21,8 +31,8 @@ ALTER TABLE `homunculus` ENGINE = MyISAM;
 ALTER TABLE `interlog` ENGINE = MyISAM;
 ALTER TABLE `inventory` ENGINE = MyISAM;
 ALTER TABLE `ipbanlist` ENGINE = MyISAM;
-#ALTER TABLE `item_db` ENGINE = MyISAM;
-#ALTER TABLE `item_db2` ENGINE = MyISAM;
+-- ALTER TABLE `item_db` ENGINE = MyISAM;
+-- ALTER TABLE `item_db2` ENGINE = MyISAM;
 ALTER TABLE `login` ENGINE = MyISAM;
 ALTER TABLE `mapreg` ENGINE = MyISAM;
 ALTER TABLE `sc_data` ENGINE = MyISAM;
@@ -30,8 +40,9 @@ ALTER TABLE `mail` ENGINE = MyISAM;
 ALTER TABLE `memo` ENGINE = MyISAM;
 ALTER TABLE `mercenary` ENGINE = MyISAM;
 ALTER TABLE `mercenary_owner` ENGINE = MyISAM;
-#ALTER TABLE `mob_db` ENGINE = MyISAM;
-#ALTER TABLE `mob_db2` ENGINE = MyISAM;
+-- ALTER TABLE `mob_db` ENGINE = MyISAM;
+-- ALTER TABLE `mob_db2` ENGINE = MyISAM;
+ALTER TABLE `npc_market_data` ENGINE = MyISAM;
 ALTER TABLE `party` ENGINE = MyISAM;
 ALTER TABLE `pet` ENGINE = MyISAM;
 ALTER TABLE `quest` ENGINE = MyISAM;
@@ -42,13 +53,4 @@ ALTER TABLE `sql_updates` ENGINE = MyISAM;
 ALTER TABLE `sstatus` ENGINE = MyISAM;
 ALTER TABLE `storage` ENGINE = MyISAM;
 ALTER TABLE `interreg` ENGINE = MyISAM;
-ALTER TABLE `account_data` ENGINE = MyISAM;
-ALTER TABLE `npc_market_data` ENGINE = MyISAM;
-ALTER TABLE `acc_reg_num_db` ENGINE = MyISAM;
-ALTER TABLE `acc_reg_str_db` ENGINE = MyISAM;
-ALTER TABLE `char_reg_num_db` ENGINE = MyISAM;
-ALTER TABLE `char_reg_str_db` ENGINE = MyISAM;
-ALTER TABLE `global_acc_reg_num_db` ENGINE = MyISAM;
-ALTER TABLE `global_acc_reg_str_db` ENGINE = MyISAM;
-ALTER TABLE `autotrade_merchants` ENGINE = MyISAM;
-ALTER TABLE `autotrade_data` ENGINE = MyISAM;
+
diff --git a/sql-files/tools/convert_passwords.sql b/sql-files/tools/convert_passwords.sql
index 86e4c5b08..9ee35e13e 100644
--- a/sql-files/tools/convert_passwords.sql
+++ b/sql-files/tools/convert_passwords.sql
@@ -1,3 +1,3 @@
-# Convert passwords to MD5 hashes
+-- Convert passwords to MD5 Hash
 
 UPDATE `login` SET `user_pass`=MD5(`user_pass`);
-- 
cgit v1.2.3-70-g09d2

