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); 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; return true;
} }

View file

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$version = 2010101901; // YYYYMMDD = date of the last version bump $version = 2010102300; // YYYYMMDD = date of the last version bump
// XX = daily increments // XX = daily increments
$release = '2.0 RC1 (Build: 20101023)'; // Human-friendly version name $release = '2.0 RC1 (Build: 20101023)'; // Human-friendly version name