mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-9506 Changed grade_calculations.usermodified type to null from non-null.
This commit is contained in:
parent
27fbffb62b
commit
eb2658e03a
3 changed files with 13 additions and 3 deletions
|
@ -1019,6 +1019,16 @@ function xmldb_main_upgrade($oldversion=0) {
|
|||
$result = $result && add_field($table, $field);
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2007042601) {
|
||||
|
||||
/// Changing nullability of field usermodified on table grade_calculations to null
|
||||
$table = new XMLDBTable('grade_calculations');
|
||||
$field = new XMLDBField('usermodified');
|
||||
$field->setAttributes(XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, null, null, null, null, null, 'timemodified');
|
||||
|
||||
/// Launch change of nullability for field usermodified
|
||||
$result = $result && change_field_notnull($table, $field);
|
||||
}
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue