From: moodler Date: Tue, 21 Sep 2004 08:40:18 +0000 (+0000) Subject: Working but unpolished script to convert all MySQL tables to InnoDB format X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0f5706a3f39d684212345549bdfec05a42f8602a;p=moodle.git Working but unpolished script to convert all MySQL tables to InnoDB format Not linked, just call it directly --- diff --git a/admin/innodb.php b/admin/innodb.php new file mode 100644 index 0000000000..bd1eb670f6 --- /dev/null +++ b/admin/innodb.php @@ -0,0 +1,29 @@ +MetaTables()) { + $db->debug = true; + foreach ($tables as $table) { + execute_sql("ALTER TABLE $table TYPE=INNODB; "); + } + } + } else { + notice("Are you sure you want convert all your tables to the InnoDB format?", "innodb.php?confirm=yes", "index.php"); + } + +?>