MDL-24777 upgrade the emoticons settings into the new format, using the default values

This commit is contained in:
David Mudrak 2010-10-23 18:44:04 +00:00
parent 015ba71af0
commit f61b376873
2 changed files with 8 additions and 1 deletions

View file

@ -5310,6 +5310,13 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
upgrade_main_savepoint(true, 2010101900);
}
// new format of the emoticons setting
if ($oldversion < 2010102300) {
$DB->delete_records('config', array('name' => 'emoticons'));
$DB->delete_records('cache_text'); // changed md5 hash calculation
upgrade_main_savepoint(true, 2010102300);
}
return true;
}