mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-26644 course: Remove useless setting completionstartonenrol
This commit removes any trace of the setting 'Completion tracking begins on enrolment' as it does not appear to do anything.
This commit is contained in:
parent
373a8e052c
commit
8819a83601
8 changed files with 18 additions and 40 deletions
|
@ -1756,5 +1756,20 @@ function xmldb_main_upgrade($oldversion) {
|
|||
// No savepoint needed for this change.
|
||||
}
|
||||
|
||||
if ($oldversion < 2013032200.00) {
|
||||
|
||||
// Define field completionstartonenrol to be dropped from course.
|
||||
$table = new xmldb_table('course');
|
||||
$field = new xmldb_field('completionstartonenrol');
|
||||
|
||||
// Conditionally launch drop field completionstartonenrol.
|
||||
if ($dbman->field_exists($table, $field)) {
|
||||
$dbman->drop_field($table, $field);
|
||||
}
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2013032200.00);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue