Merge branch 'w17_MDL-25407_m22_innodb' of git://github.com/skodak/moodle into MOODLE_22_STABLE

This commit is contained in:
Dan Poltawski 2012-04-24 10:23:34 +08:00
commit 1d6070951a

View file

@ -76,7 +76,13 @@ if (!empty($options['engine'])) {
}
echo str_pad($table->name, 40). " - ";
$DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
try {
$DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
} catch (moodle_exception $e) {
echo $e->getMessage()."\n";
$skipped++;
continue;
}
echo "DONE\n";
$converted++;
}