MDL-25407 ignore errors in CLI mysql engine conversion script

This commit is contained in:
Petr Skoda
2012-04-23 19:19:19 +02:00
parent f2c648edc3
commit e498621a95

View File

@@ -76,7 +76,13 @@ if (!empty($options['engine'])) {
}
echo str_pad($table->name, 40). " - ";
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++;
}