Merge branch 'w03_MDL-31165_m23_innodbconv' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2012-01-16 02:06:27 +01:00
commit 41c3a6f004
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ if (!empty($options['engine'])) {
}
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++;
}

View File

@ -50,7 +50,7 @@ if (data_submitted() and $confirm and confirm_sesskey()) {
$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);
}