MDL-24888, fixed tags itemtype in lib/db/upgrade.php
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user