Permalink
Browse files

MDL-22232 messaging: updated upgrade code to reduce server load durin…

…g upgrade
  • Loading branch information...
1 parent b157137 commit e186fee5e34429f2bf8092871446bcb4109615e5 @andyjdavis andyjdavis committed Sep 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/db/upgrade.php
View
@@ -6124,7 +6124,7 @@ function xmldb_main_upgrade($oldversion) {
$DB->delete_records('user_preferences', array('name'=>'message_showmessagewindow'));
//re-introducing emailstop. check that its turned off so people dont suddenly stop getting notifications
- $DB->set_field('user', 'emailstop', 0);
+ $DB->set_field('user', 'emailstop', 0, array('emailstop' => 1));
upgrade_main_savepoint(true, 2011033004.04);
}

0 comments on commit e186fee

Please sign in to comment.