Commit 9b66b300 authored by stronk7's avatar stronk7
Browse files

MDL-18227 forum ratings - clean wrong records; merged from 19_STABLE

parent 3265eb1a
......@@ -255,6 +255,15 @@ function xmldb_forum_upgrade($oldversion) {
upgrade_mod_savepoint($result, 2009042700, 'forum');
}
if ($result && $oldversion < 2009050400) {
/// Clean existing wrong rates. MDL-18227
$DB->delete_records('forum_ratings', array('post' => 0));
/// forum savepoint reached
upgrade_mod_savepoint($result, 2009050400, 'forum');
}
return $result;
}
......
......@@ -5,7 +5,7 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////
$module->version = 2009042700;
$module->version = 2009050400;
$module->requires = 2009041700; // Requires this Moodle version
$module->cron = 60;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment