Skip to content

Commit

Permalink
"NOMDL, fixed wiki upgrade, credits to David Mudrak"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Nov 24, 2010
1 parent 156205f commit ad85f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/wiki/db/upgrade.php
Expand Up @@ -150,7 +150,7 @@ function xmldb_wiki_upgrade($oldversion) {
* Migrating wiki entries to new subwikis
*/
$sql = "INSERT into {wiki_subwikis} (wikiid, groupid, userid)
SELECT e.wikiid, e.groupid, e.userid
SELECT DISTINCT e.wikiid, e.groupid, e.userid
FROM {wiki_entries_old} e";
echo $OUTPUT->notification('Migrating old entries to new subwikis', 'notifysuccess');

Expand Down

0 comments on commit ad85f26

Please sign in to comment.