mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-18577 drop enums support - step2: enums out from editor, dbmanager and all upgrade scripts.
This commit is contained in:
parent
3ece3e4273
commit
2a88f626f7
32 changed files with 348 additions and 677 deletions
|
@ -37,7 +37,7 @@ function xmldb_lesson_upgrade($oldversion) {
|
|||
/// Rename lesson->usegrademax to lesson->usemaxgrade. Some old sites can have it incorrect. MDL-13177
|
||||
if ($dbman->field_exists($table, $field) && !$dbman->field_exists($table, $field2)) {
|
||||
/// Set field specs
|
||||
$field->set_attributes(XMLDB_TYPE_INTEGER, '3', null, XMLDB_NOTNULL, null, null, null, '0', 'ongoing');
|
||||
$field->set_attributes(XMLDB_TYPE_INTEGER, '3', null, XMLDB_NOTNULL, null, '0', 'ongoing');
|
||||
/// Launch rename field usegrademax to usemaxgrade
|
||||
$dbman->rename_field($table, $field, 'usemaxgrade');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue