Fix double savepoint in the same block of upgrade. MDL-11888

This commit is contained in:
stronk7 2008-04-18 23:15:44 +00:00
parent bab408f658
commit 0f77b186f1

View File

@ -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;
}