Browse Source

sql script to ccnvert all tables to innodb

tags/3.01
friendica 7 years ago
parent
commit
668e03d4e5
1 changed files with 19 additions and 0 deletions
  1. 19
    0
      convert_innodb.sql

+ 19
- 0
convert_innodb.sql View File

@@ -0,0 +1,19 @@
1
+
2
+
3
+ALTER TABLE `profile` DROP INDEX `pub_keywords` ; 
4
+ALTER TABLE `profile` DROP INDEX `prv_keywords` ;
5
+
6
+ALTER TABLE `item` DROP INDEX `title` ;
7
+ALTER TABLE `item` DROP INDEX `body` ;
8
+ALTER TABLE `item` DROP INDEX `allow_cid` ;
9
+ALTER TABLE `item` DROP INDEX `allow_gid` ;
10
+ALTER TABLE `item` DROP INDEX `deny_cid` ;
11
+ALTER TABLE `item` DROP INDEX `deny_gid` ;
12
+ALTER TABLE `item` DROP INDEX `tag` ;
13
+ALTER TABLE `item` DROP INDEX `file` ;
14
+
15
+
16
+SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=InnoDB;') 
17
+FROM information_schema.tables 
18
+WHERE engine = 'MyISAM';
19
+

Loading…
Cancel
Save