浏览代码

Call it "toinnodb"

tags/3.5.2
Michael 3 年前
父节点
当前提交
2628ff91f4
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +2
    -2
      include/dbstructure.php
  2. +1
    -1
      mod/admin.php

+ 2
- 2
include/dbstructure.php 查看文件

@@ -1751,7 +1751,7 @@ function dbstructure_run(&$argv, &$argc) {
case "dumpsql":
print_structure(db_definition());
return;
case "innodb":
case "toinnodb":
convert_to_innodb();
return;
}
@@ -1765,7 +1765,7 @@ function dbstructure_run(&$argv, &$argc) {
echo "dryrun show database update schema queries without running them\n";
echo "update update database schema\n";
echo "dumpsql dump database schema\n";
echo "innodb convert all tables from MyISAM to InnoDB\n";
echo "toinnodb convert all tables from MyISAM to InnoDB\n";
return;

}


+ 1
- 1
mod/admin.php 查看文件

@@ -447,7 +447,7 @@ function admin_page_summary(App $a) {
$warningtext = array();
if (dbm::is_result($r)) {
$showwarning = true;
$warningtext[] = sprintf(t('Your DB still runs with MyISAM tables. You should change the engine type to InnoDB. As Friendica will use InnoDB only features in the future, you should change this! See <a href="%s">here</a> for a guide that may be helpful converting the table engines. You may also use the command <tt>php include/dbstructure.php innodb</tt> of your Friendica installation for an automatic conversion.<br />'), 'https://dev.mysql.com/doc/refman/5.7/en/converting-tables-to-innodb.html');
$warningtext[] = sprintf(t('Your DB still runs with MyISAM tables. You should change the engine type to InnoDB. As Friendica will use InnoDB only features in the future, you should change this! See <a href="%s">here</a> for a guide that may be helpful converting the table engines. You may also use the command <tt>php include/dbstructure.php toinnodb</tt> of your Friendica installation for an automatic conversion.<br />'), 'https://dev.mysql.com/doc/refman/5.7/en/converting-tables-to-innodb.html');
}
// MySQL >= 5.7.4 doesn't support the IGNORE keyword in ALTER TABLE statements
if ((version_compare($db->server_info(), '5.7.4') >= 0) AND


正在加载...
取消
保存