summaryrefslogtreecommitdiff
path: root/sql-files/convert_engine.sql
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-12 18:22:54 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-12 18:22:54 +0000
commiteb7df5bd7ec3557acbe42c17775ffb2cd2e69c36 (patch)
tree05906bcfcf71133222b7e51f1c145b2707584c5e /sql-files/convert_engine.sql
parent18b8ec2594cd4a8748d8c69a82f61c8637ef400e (diff)
downloadhercules-eb7df5bd7ec3557acbe42c17775ffb2cd2e69c36.tar.gz
hercules-eb7df5bd7ec3557acbe42c17775ffb2cd2e69c36.tar.bz2
hercules-eb7df5bd7ec3557acbe42c17775ffb2cd2e69c36.tar.xz
hercules-eb7df5bd7ec3557acbe42c17775ffb2cd2e69c36.zip
- Added manual deletion of sc_data entries when deleting a character (char-SQL)
- Updated main.sql to use pure MyISAM tables, removed all foreign keys. - Added Jaguar's sql script to convert all tables to MyISAM. It's located in sql-files/convert_engine.sql - Removed convert_guild_tables.sql as we don't use InnoDB anymore. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8722 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'sql-files/convert_engine.sql')
-rw-r--r--sql-files/convert_engine.sql22
1 files changed, 22 insertions, 0 deletions
diff --git a/sql-files/convert_engine.sql b/sql-files/convert_engine.sql
new file mode 100644
index 000000000..ecff06072
--- /dev/null
+++ b/sql-files/convert_engine.sql
@@ -0,0 +1,22 @@
+--
+-- eAthena Database Converter ( InnoDB -> MyISAM ) by Jaguar
+--
+
+ALTER TABLE `sc_data` DROP FOREIGN KEY `scdata_ibfk_1`, DROP FOREIGN KEY `scdata_ibfk_2`;
+ALTER TABLE `guild` DROP FOREIGN KEY `guild_ibfk_1`;
+ALTER TABLE `guild_alliance` DROP FOREIGN KEY `guild_alliance_ibfk_1`, DROP FOREIGN KEY `guild_alliance_ibfk_2`;
+ALTER TABLE `guild_expulsion` DROP FOREIGN KEY `guild_expulsion_ibfk_1`;
+ALTER TABLE `guild_member` DROP FOREIGN KEY `guild_member_ibfk_1`, DROP FOREIGN KEY `guild_member_ibfk_2`;
+ALTER TABLE `guild_position` DROP FOREIGN KEY `guild_position_ibfk_1`;
+ALTER TABLE `guild_skill` DROP FOREIGN KEY `guild_skill_ibfk_1`;
+ALTER TABLE `guild_storage` DROP FOREIGN KEY `guild_storage_ibfk_1`;
+ALTER TABLE `sc_data` ENGINE = MYISAM;
+ALTER TABLE `login` ENGINE = MYISAM;
+ALTER TABLE `char` ENGINE = MYISAM;
+ALTER TABLE `guild` ENGINE = MYISAM;
+ALTER TABLE `guild_alliance` ENGINE = MYISAM;
+ALTER TABLE `guild_expulsion` ENGINE = MYISAM;
+ALTER TABLE `guild_member` ENGINE = MYISAM;
+ALTER TABLE `guild_position` ENGINE = MYISAM;
+ALTER TABLE `guild_skill` ENGINE = MYISAM;
+ALTER TABLE `guild_storage` ENGINE = MYISAM;