mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-32003 fix broken table ordering and cleanup other xmldb ordering
This commit is contained in:
parent
aaddfac50c
commit
2edc3fecfb
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user