mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Forum MDL-18712 fix file storage upgrade code - thanks to Tatsuya Shirai for report/fix
This commit is contained in:
parent
9be1be51e1
commit
af9059ec4c
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ function xmldb_forum_upgrade($oldversion) {
|
|||
|
||||
$count = $DB->count_records_sql("SELECT COUNT('x') $sqlfrom");
|
||||
|
||||
if ($rs = $DB->get_recordset_sql("SELECT p.id, p.attachment, d.forum, f.course, cm.id AS cmid $sqlfrom ORDER BY f.course, f.id, d.id")) {
|
||||
if ($rs = $DB->get_recordset_sql("SELECT p.id, p.attachment, p.userid, d.forum, f.course, cm.id AS cmid $sqlfrom ORDER BY f.course, f.id, d.id")) {
|
||||
|
||||
$pbar = new progress_bar('migrateforumfiles', 500, true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue