mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-75534-master-forum-usermodified-zero' of https://github.com/mudrd8mz/moodle
This commit is contained in:
commit
e258534b3f
@ -176,5 +176,12 @@ function xmldb_forum_upgrade($oldversion) {
|
||||
// Automatically generated Moodle v4.1.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
if ($oldversion < 2022112801) {
|
||||
// Some very old discussions from early Moodle versions may have the usermodified set to zero.
|
||||
$DB->execute("UPDATE {forum_discussions} SET usermodified = userid WHERE usermodified = 0");
|
||||
|
||||
upgrade_mod_savepoint(true, 2022112801, 'forum');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2022112800; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2022112801; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2022111800; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
|
||||
|
Loading…
x
Reference in New Issue
Block a user