Skip to content

Commit

Permalink
MDL-32003 fix broken table ordering and cleanup other xmldb ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 17, 2012
1 parent aaddfac commit 2edc3fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function invoke() {
$table->setChanged(true);

// Reorder the fields
$table->orderFields($fields);
$table->orderFields();

// Recalculate the hash
$structure->calculateHash(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function invoke() {
$table->setChanged(true);

// Reorder the indexes
$table->orderIndexes($indexes);
$table->orderIndexes();

// Recalculate the hash
$structure->calculateHash(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function invoke() {
$table->setChanged(true);

// Reorder the keys
$table->orderKeys($keys);
$table->orderKeys();

// Recalculate the hash
$structure->calculateHash(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ function invoke() {
$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);

Expand Down

0 comments on commit 2edc3fe

Please sign in to comment.