Merge branch 'w51_MDL-21116_m52_reversedel' of git://github.com/skodak/moodle
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user