# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/lib/db/upgrade.php --- moodle/lib/db/upgrade.php Base (1.154.2.67) +++ moodle/lib/db/upgrade.php Locally Modified (Based On 1.154.2.67) @@ -3291,6 +3291,41 @@ upgrade_main_savepoint($result, 2007101563.03); } + + if ($result && $oldversion < 2007101571.02) { + $table = new XMLDBTable('grade_categories'); + $field = new XMLDBField('hidden'); + $field->setAttributes(XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, '0'); + $result = $result && add_field($table, $field); + + upgrade_main_savepoint($result, 2007101571.02); + } + return $result; }