mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Fix double savepoint in the same block of upgrade. MDL-11888
This commit is contained in:
parent
bab408f658
commit
0f77b186f1
@ -2960,9 +2960,6 @@ function xmldb_main_upgrade($oldversion=0) {
|
||||
/// Launch drop index contextid-lowerboundary
|
||||
$result = $result && drop_index($table, $index);
|
||||
|
||||
/// Main savepoint reached
|
||||
upgrade_main_savepoint($result, 2008030700);
|
||||
|
||||
/// Define index contextid-lowerboundary-letter (unique) to be added to grade_letters
|
||||
$table = new XMLDBTable('grade_letters');
|
||||
$index = new XMLDBIndex('contextid-lowerboundary-letter');
|
||||
@ -2972,8 +2969,8 @@ function xmldb_main_upgrade($oldversion=0) {
|
||||
$result = $result && add_index($table, $index);
|
||||
|
||||
/// Main savepoint reached
|
||||
upgrade_main_savepoint($result, 2008030700);
|
||||
}
|
||||
upgrade_main_savepoint($result, 2008030700);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user