Merge branch 'w51_MDL-21116_m52_reversedel' of git://github.com/skodak/moodle

This commit is contained in:
Dan Poltawski
2013-01-08 12:58:16 +08:00
+2
View File
@@ -300,6 +300,8 @@ class database_manager {
}
if ($xmldb_tables = $structure->getTables()) {
// Delete in opposite order, this should help with foreign keys in the future.
$xmldb_tables = array_reverse($xmldb_tables);
foreach($xmldb_tables as $table) {
if ($this->table_exists($table)) {
$this->drop_table($table);