From f9b0beff8ddd1133271b7ded444e1fe010562eed Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Thu, 8 Dec 2016 20:29:06 +0100 Subject: [PATCH 1/3] only convert tables in friendica DB --- util/convert_innodb.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/convert_innodb.sql b/util/convert_innodb.sql index 6b065f3b25..bcc87222af 100644 --- a/util/convert_innodb.sql +++ b/util/convert_innodb.sql @@ -1,4 +1,4 @@ SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=InnoDB;') FROM information_schema.tables -WHERE engine = 'MyISAM'; +WHERE engine = 'MyISAM' AND `table_schema` = 'friendica'; From a564e31451238cc66efc90d7a4f9c79c0317514f Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 9 Dec 2016 16:43:40 +0100 Subject: [PATCH 2/3] use %placeholder% instead of Friendica --- util/convert_innodb.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/convert_innodb.sql b/util/convert_innodb.sql index bcc87222af..6a2774aa44 100644 --- a/util/convert_innodb.sql +++ b/util/convert_innodb.sql @@ -1,4 +1,6 @@ - +# script to convert tables from MyISAM to InnoDB +# change the %PLACEHOLDER% to ythe actual name of your Friendica DB + SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=InnoDB;') FROM information_schema.tables -WHERE engine = 'MyISAM' AND `table_schema` = 'friendica'; +WHERE engine = 'MyISAM' AND `table_schema` = '%PLACEHOLDER%'; From 6f3e91d4c01aa8e2af977b583c63feb0f15f4b5e Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 9 Dec 2016 18:11:27 +0100 Subject: [PATCH 3/3] Michael may keep the typo --- util/convert_innodb.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/convert_innodb.sql b/util/convert_innodb.sql index 6a2774aa44..7f3d99a4da 100644 --- a/util/convert_innodb.sql +++ b/util/convert_innodb.sql @@ -1,5 +1,5 @@ # script to convert tables from MyISAM to InnoDB -# change the %PLACEHOLDER% to ythe actual name of your Friendica DB +# change the %PLACEHOLDER% to the actual name of your Friendica DB SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=InnoDB;') FROM information_schema.tables