Skip to content

Commit

Permalink
Merge branch 'w17_MDL-25407_m22_innodb' of git://github.com/skodak/mo…
Browse files Browse the repository at this point in the history
…odle into MOODLE_22_STABLE
  • Loading branch information
danpoltawski committed Apr 24, 2012
2 parents 8d66adc + 3b1055e commit 1d60709
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion admin/cli/mysql_engine.php
Expand Up @@ -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++;
}
Expand Down

0 comments on commit 1d60709

Please sign in to comment.