mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 18:04:43 +02:00
MDL-45661 Assign: Clean bad data from DB after MDL-42526
This commit is contained in:
parent
37d39fe348
commit
4e2bf2381f
@ -483,6 +483,17 @@ function xmldb_assign_upgrade($oldversion) {
|
||||
// Assign savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2014010801, 'assign');
|
||||
}
|
||||
// Moodle v2.7.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
if ($oldversion < 2014051201) {
|
||||
|
||||
// Cleanup bad database records where assignid is missing.
|
||||
|
||||
$DB->delete_records('assign_user_mapping', array('assignment'=>0));
|
||||
// Assign savepoint reached.
|
||||
upgrade_mod_savepoint(true, 2014051201, 'assign');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->component = 'mod_assign'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->version = 2014051200; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2014051201; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2014050800; // Requires this Moodle version.
|
||||
$plugin->cron = 60;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user