MDL-32003 fix broken table ordering and cleanup other xmldb ordering

This commit is contained in:
Petr Skoda 2012-06-06 11:25:00 +02:00
parent aaddfac50c
commit 2edc3fecfb
4 changed files with 5 additions and 6 deletions

View File

@ -122,7 +122,7 @@ class move_updown_field extends XMLDBAction {
$table->setChanged(true);
// Reorder the fields
$table->orderFields($fields);
$table->orderFields();
// Recalculate the hash
$structure->calculateHash(true);

View File

@ -122,7 +122,7 @@ class move_updown_index extends XMLDBAction {
$table->setChanged(true);
// Reorder the indexes
$table->orderIndexes($indexes);
$table->orderIndexes();
// Recalculate the hash
$structure->calculateHash(true);

View File

@ -122,7 +122,7 @@ class move_updown_key extends XMLDBAction {
$table->setChanged(true);
// Reorder the keys
$table->orderKeys($keys);
$table->orderKeys();
// Recalculate the hash
$structure->calculateHash(true);

View File

@ -115,9 +115,8 @@ class move_updown_table extends XMLDBAction {
$table->setChanged(true);
// Reorder the structure
$structure->orderTables($tables);
// Send tables back to structure (the order above break refs)
$structure->setTables($tables);
$structure->orderTables();
// Recalculate the hash
$structure->calculateHash(true);