Skip to content

Commit

Permalink
MDL-24888, fixed tags itemtype in lib/db/upgrade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Nov 2, 2010
1 parent f20b0af commit f776e22
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5379,6 +5379,20 @@ function xmldb_main_upgrade($oldversion) {
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;
}

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f776e22

Please sign in to comment.