mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'w17_MDL-25407_m22_innodb' of git://github.com/skodak/moodle into MOODLE_22_STABLE
This commit is contained in:
commit
1d6070951a
1 changed files with 7 additions and 1 deletions
|
@ -76,7 +76,13 @@ if (!empty($options['engine'])) {
|
||||||
}
|
}
|
||||||
echo str_pad($table->name, 40). " - ";
|
echo str_pad($table->name, 40). " - ";
|
||||||
|
|
||||||
|
try {
|
||||||
$DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
|
$DB->change_database_structure("ALTER TABLE {$table->name} ENGINE = $engine");
|
||||||
|
} catch (moodle_exception $e) {
|
||||||
|
echo $e->getMessage()."\n";
|
||||||
|
$skipped++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
echo "DONE\n";
|
echo "DONE\n";
|
||||||
$converted++;
|
$converted++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue