Merge branch 'MDL-27635' of git://github.com/rwijaya/moodle
This commit is contained in:
+15
-2
@@ -6051,11 +6051,12 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
||||
// Define field secret to be added to registration_hubs
|
||||
$table = new xmldb_table('registration_hubs');
|
||||
$field = new xmldb_field('secret', XMLDB_TYPE_CHAR, '255', null, null, null,
|
||||
$CFG->siteidentifier, 'confirmed');
|
||||
null, 'confirmed');
|
||||
|
||||
// Conditionally launch add field secret
|
||||
// Conditionally launch add field secret and set its value
|
||||
if (!$dbman->field_exists($table, $field)) {
|
||||
$dbman->add_field($table, $field);
|
||||
$DB->set_field('registration_hubs', 'secret', $CFG->siteidentifier);
|
||||
}
|
||||
|
||||
// Main savepoint reached
|
||||
@@ -6696,6 +6697,18 @@ FROM
|
||||
upgrade_main_savepoint(true, 2011083100.02);
|
||||
}
|
||||
|
||||
if ($oldversion < 2011090700.01) {
|
||||
// Changing the default of field secret on table registration_hubs to NULL
|
||||
$table = new xmldb_table('registration_hubs');
|
||||
$field = new xmldb_field('secret', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'confirmed');
|
||||
|
||||
// Launch change of default for field secret
|
||||
$dbman->change_field_default($table, $field);
|
||||
|
||||
// Main savepoint reached
|
||||
upgrade_main_savepoint(true, 2011090700.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
|
||||
|
||||
$version = 2011090700.00; // YYYYMMDD = weekly release date of this DEV branch
|
||||
$version = 2011090700.01; // YYYYMMDD = weekly release date of this DEV branch
|
||||
// RR = release increments - 00 in DEV branches
|
||||
// .XX = incremental changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user