Commit 71e1a1f8 authored by Eloy Lafuente's avatar Eloy Lafuente
Browse files

MDL-20306 Add course_category idnumber field: version bump and fix missing add_field() call

parent 83cd9b16
......@@ -6778,16 +6778,18 @@ FROM
upgrade_main_savepoint(true, 2011092800.03);
}
if ($oldversion < 2011100700.01) {
if ($oldversion < 2011100700.02) {
// Define field idnumber to be added to course_categories
$table = new xmldb_table('course_categories');
$field = new xmldb_field('idnumber', XMLDB_TYPE_CHAR, '100', null, null, null, null, 'name');
// Conditionally launch add field idnumber
if (!$dbman->field_exists($table,$field)) {
$dbman->add_field($table, $field);
}
// Main savepoint reached
upgrade_main_savepoint(true, 2011100700.01);
upgrade_main_savepoint(true, 2011100700.02);
}
return true;
......
......@@ -31,7 +31,7 @@ defined('MOODLE_INTERNAL') || die();
$version = 2011100700.01; // YYYYMMDD = weekly release date of this DEV branch
$version = 2011100700.02; // YYYYMMDD = weekly release date of this DEV branch
// RR = release increments - 00 in DEV branches
// .XX = incremental changes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment