MDL-16660 - upgrade: split steps up into two

Be extra safe for potential debugging purposes
This commit is contained in:
Dan Poltawski 2012-10-30 14:33:30 +08:00
parent 0c918a1f52
commit d618dcf3c9
2 changed files with 6 additions and 2 deletions

View File

@ -1296,15 +1296,19 @@ function xmldb_main_upgrade($oldversion) {
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}
upgrade_main_savepoint(true, 2012103002.00);
}
if ($oldversion < 2012103003.00) {
// Fix uuid field in event table to match RFC-2445 UID property
$table = new xmldb_table('event');
$field = new xmldb_field('uuid', XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null, 'visible');
if ($dbman->field_exists($table, $field)) {
// Changing precision of field uuid on table event to (255)
$dbman->change_field_precision($table, $field);
}
// Main savepoint reached
upgrade_main_savepoint(true, 2012103002.00);
upgrade_main_savepoint(true, 2012103003.00);
}
return true;

View File

@ -30,7 +30,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2012103002.00; // YYYYMMDD = weekly release date of this DEV branch
$version = 2012103003.00; // YYYYMMDD = weekly release date of this DEV branch
// RR = release increments - 00 in DEV branches
// .XX = incremental changes