Permalink
Browse files

MDL-31165 fix InnoDB conversion query to use ENGINE parameter instead…

… of legacy TYPE
  • Loading branch information...
1 parent f70f6e9 commit 22d6b3da4fcf4826e196c3398260e0ca5d67e026 @skodak skodak committed Jan 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 admin/cli/mysql_engine.php
  2. +1 −1 admin/tool/innodb/index.php
@@ -76,7 +76,7 @@
}
echo str_pad($table->name, 40). " - ";
- $DB->change_database_structure("ALTER TABLE {$table->name} TYPE = $engine");
+ $DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
echo "DONE\n";
$converted++;
}
@@ -50,7 +50,7 @@
$DB->set_debug(true);
foreach ($tables as $table) {
$fulltable = $DB->get_prefix().$table;
- $DB->change_database_structure("ALTER TABLE $fulltable TYPE=INNODB");
+ $DB->change_database_structure("ALTER TABLE $fulltable ENGINE=INNODB");
}
$DB->set_debug(false);
}

0 comments on commit 22d6b3d

Please sign in to comment.