aboutsummaryrefslogtreecommitdiffstats
path: root/convert_innodb.sql
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-19 00:45:45 -0700
committerfriendica <info@friendica.com>2012-05-19 00:45:45 -0700
commit668e03d4e52c118cc0e28508cceb1c8ec2b1eabf (patch)
treed8a62c944c2f0629d7e93b9120e88612e05df85d /convert_innodb.sql
parent4133df62234cc3466f34b8a7d52147a1e422bbc0 (diff)
downloadvolse-hubzilla-668e03d4e52c118cc0e28508cceb1c8ec2b1eabf.tar.gz
volse-hubzilla-668e03d4e52c118cc0e28508cceb1c8ec2b1eabf.tar.bz2
volse-hubzilla-668e03d4e52c118cc0e28508cceb1c8ec2b1eabf.zip
sql script to ccnvert all tables to innodb
Diffstat (limited to 'convert_innodb.sql')
-rw-r--r--convert_innodb.sql19
1 files changed, 19 insertions, 0 deletions
diff --git a/convert_innodb.sql b/convert_innodb.sql
new file mode 100644
index 000000000..9eeb67fe8
--- /dev/null
+++ b/convert_innodb.sql
@@ -0,0 +1,19 @@
+
+
+ALTER TABLE `profile` DROP INDEX `pub_keywords` ;
+ALTER TABLE `profile` DROP INDEX `prv_keywords` ;
+
+ALTER TABLE `item` DROP INDEX `title` ;
+ALTER TABLE `item` DROP INDEX `body` ;
+ALTER TABLE `item` DROP INDEX `allow_cid` ;
+ALTER TABLE `item` DROP INDEX `allow_gid` ;
+ALTER TABLE `item` DROP INDEX `deny_cid` ;
+ALTER TABLE `item` DROP INDEX `deny_gid` ;
+ALTER TABLE `item` DROP INDEX `tag` ;
+ALTER TABLE `item` DROP INDEX `file` ;
+
+
+SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=InnoDB;')
+FROM information_schema.tables
+WHERE engine = 'MyISAM';
+