mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-20245 grade: increased the length of the user_preferences::value column and added an exception to set_user_preference() is this new length is exceeded
Conflicts: lib/db/upgrade.php version.php
This commit is contained in:
parent
c42346aa63
commit
8e54ce9717
4 changed files with 19 additions and 3 deletions
|
@ -6979,6 +6979,19 @@ FROM
|
|||
upgrade_main_savepoint(true, 2011120500.02);
|
||||
}
|
||||
|
||||
if ($oldversion < 2011121400.00) {
|
||||
|
||||
// Changing precision of field value on table user_preferences to (1333)
|
||||
$table = new xmldb_table('user_preferences');
|
||||
$field = new xmldb_field('value', XMLDB_TYPE_CHAR, '1333', null, XMLDB_NOTNULL, null, null, 'name');
|
||||
|
||||
// Launch change of precision for field value
|
||||
$dbman->change_field_precision($table, $field);
|
||||
|
||||
// Main savepoint reached
|
||||
upgrade_main_savepoint(true, 2011121400.00);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue