|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | mod |
Local Library of functions for module scorm. | |
Functions | |
| xmldb_lesson_upgrade ($oldversion) | |
| xmldb_lesson_upgrade | ( | $ | oldversion | ) |
stdClass $CFG moodle_database $DB core_renderer $OUTPUT
| int | $oldversion |
Rename lesson->usegrademax to lesson->usemaxgrade. Some old sites can have it incorrect. MDL-13177
Set field specs
Launch rename field usegrademax to usemaxgrade
Change the grade field within lesson_answers to an unsigned int and increment the length by one to ensure that no values are changed (reduced)
Drop the lesson_default table, as of Moodle 2.0 it is no longer used the module now has a settings.php instead
Define field contentsformat to be added to lesson_pages
Conditionally launch add field contentsformat
lesson savepoint reached
Definition at line 55 of file upgrade.php.
