mirror of
https://github.com/friendica/friendica
synced 2025-01-10 18:44:43 +00:00
Merge pull request #3000 from tobiasd/20161208-convert
only convert tables in friendica DB
This commit is contained in:
commit
5065def530
1 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
|
# script to convert tables from MyISAM to InnoDB
|
||||||
|
# change the %PLACEHOLDER% to the actual name of your Friendica DB
|
||||||
|
|
||||||
SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=InnoDB;')
|
SELECT CONCAT('ALTER TABLE ',table_schema,'.',table_name,' engine=InnoDB;')
|
||||||
FROM information_schema.tables
|
FROM information_schema.tables
|
||||||
WHERE engine = 'MyISAM';
|
WHERE engine = 'MyISAM' AND `table_schema` = '%PLACEHOLDER%';
|
||||||
|
|
Loading…
Reference in a new issue