diff --git a/admin/cli/mysql_engine.php b/admin/cli/mysql_engine.php index c6d7c6ed956..3b51f413446 100644 --- a/admin/cli/mysql_engine.php +++ b/admin/cli/mysql_engine.php @@ -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++; }