]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16075 fixed pg problem
authorskodak <skodak>
Mon, 18 Aug 2008 22:33:36 +0000 (22:33 +0000)
committerskodak <skodak>
Mon, 18 Aug 2008 22:33:36 +0000 (22:33 +0000)
mod/glossary/db/upgrade.php
mod/glossary/version.php

index 4abeee0cef60eac2ab68328eaabce7af09c5d3f3..39b21920a977e7f22a5c2f9bb590716133f76424 100644 (file)
@@ -42,12 +42,11 @@ function xmldb_glossary_upgrade($oldversion) {
                     JOIN {glossary} g ON g.id = ge.glossaryid
                     JOIN {modules} m ON m.name = 'glossary'
                     JOIN {course_modules} cm ON (cm.module = m.id AND cm.instance = g.id)
-                   WHERE ge.attachment <> '$empty' AND ge.attachment <> '1'
-                ORDER BY g.course, g.id";
+                   WHERE ge.attachment <> '$empty' AND ge.attachment <> '1'";
 
         $count = $DB->count_records_sql("SELECT COUNT('x') $sqlfrom");
 
-        if ($rs = $DB->get_recordset_sql("SELECT ge.id, ge.userid, ge.attachment, ge.glossaryid, ge.sourceglossaryid, g.course, cm.id AS cmid $sqlfrom")) {
+        if ($rs = $DB->get_recordset_sql("SELECT ge.id, ge.userid, ge.attachment, ge.glossaryid, ge.sourceglossaryid, g.course, cm.id AS cmid $sqlfrom ORDER BY g.course, g.id")) {
 
             $pbar = new progress_bar('migrateglossaryfiles', 500, true);
 
index 61f17050716a4abf8f158d5b160cce4e448296e9..4fa3d061d658eca4ee704e6325331ecf148404cd 100644 (file)
@@ -5,7 +5,7 @@
 ///  This fragment is called by moodle_needs_upgrading() and /admin/index.php
 /////////////////////////////////////////////////////////////////////////////////
 
-$module->version  = 2008081700;
+$module->version  = 2008081900;
 $module->requires = 2008081600;  // Requires this Moodle version
 $module->cron     = 0;           // Period for cron to check this module (secs)