Permalink
Browse files

Merge branch 'w17_MDL-25407_m22_innodb' of git://github.com/skodak/mo…

…odle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 8d66adc + 3b1055e commit 1d6070951a35c02b636bf14a96f8cbeefa23a60d @danpoltawski danpoltawski committed Apr 24, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 admin/cli/mysql_engine.php
@@ -76,7 +76,13 @@
}
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++;
}

0 comments on commit 1d60709

Please sign in to comment.