Skip to content

Commit

Permalink
MDL-16660 - upgrade: split steps up into two
Browse files Browse the repository at this point in the history
Be extra safe for potential debugging purposes
  • Loading branch information
danpoltawski committed Oct 30, 2012
1 parent 0c918a1 commit d618dcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d618dcf

Please sign in to comment.