MDL-58454 core: Fix savepoint in upgrade.php

This commit is contained in:
Jun Pataleta 2018-11-06 11:57:09 +08:00 committed by David Monllao
parent 2bdc254cd2
commit 5c145757a8

View File

@ -2672,7 +2672,7 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2018102900.01);
}
if ($oldversion < 2018110300.01) {
if ($oldversion < 2018110500.01) {
// Define fields to be added to the 'badge' table.
$tablebadge = new xmldb_table('badge');
$fieldversion = new xmldb_field('version', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'nextcron');
@ -2766,7 +2766,7 @@ function xmldb_main_upgrade($oldversion) {
}
// Main savepoint reached.
upgrade_main_savepoint(true, 2018110300.01);
upgrade_main_savepoint(true, 2018110500.01);
}
return true;