MDL-24888, fixed tags itemtype in lib/db/upgrade.php

This commit is contained in:
Dongsheng Cai
2010-11-02 03:26:10 +00:00
parent f20b0afabb
commit f776e221e5
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -5379,6 +5379,20 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
upgrade_main_savepoint(true, 2010102700);
}
if ($oldversion < 2010110200) {
// fix tags itemtype for wiki
$sql = "UPDATE {tag_instance}
SET itemtype = 'wiki_pages'
WHERE itemtype = 'wiki_page'";
$DB->execute($sql);
echo $OUTPUT->notification('Updating tags itemtype', 'notifysuccess');
// Main savepoint reached
upgrade_main_savepoint(true, 2010110200);
}
return true;
}
+1 -1
View File
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2010102700; // YYYYMMDD = date of the last version bump
$version = 2010110200; // YYYYMMDD = date of the last version bump
// XX = daily increments
$release = '2.0 RC1 (Build: 20101102)'; // Human-friendly version name