mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
[MDL-22553]
Fixing problems with sql sentences using LIMIT
This commit is contained in:
parent
07a27d84d9
commit
2dd18a9323
@ -178,12 +178,11 @@ function xmldb_wiki_upgrade($oldversion) {
|
||||
'LEFT OUTER JOIN {wiki_subwikis} s ' .
|
||||
'ON s.wikiid = e.wikiid AND s.groupid = e.groupid AND s.userid = e.userid ' .
|
||||
'WHERE p.version = (' .
|
||||
' SELECT po.version ' .
|
||||
' SELECT max(po.version) ' .
|
||||
' FROM {wiki_pages_old} po ' .
|
||||
' WHERE p.pagename = po.pagename and ' .
|
||||
' p.wiki = po.wiki ' .
|
||||
' ORDER BY p.version DESC ' .
|
||||
' LIMIT 1)';
|
||||
' )';
|
||||
echo $OUTPUT->notification('Migrating old pages to new pages', 'notifysuccess');
|
||||
|
||||
$DB->execute($sql, array('**reparse needed**'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user