]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14451 removed pre 1.9 upgrade code
authorskodak <skodak>
Wed, 14 May 2008 23:35:00 +0000 (23:35 +0000)
committerskodak <skodak>
Wed, 14 May 2008 23:35:00 +0000 (23:35 +0000)
question/type/numerical/db/upgrade.php

index 344ddf9226ccdd9fc614f351072683501c57b3e8..eea9e9a954fc07ec1f7bb59b7bbed2a37fd2dc2d 100644 (file)
 
 function xmldb_qtype_numerical_upgrade($oldversion=0) {
 
-    global $CFG, $THEME, $db;
+    global $CFG, $THEME, $DB;
 
     $result = true;
 
-    // In numerical questions, we are changing the 'match anything' answer
-    // from the empty string to *, to be like short answer questions.
-    if ($result && $oldversion < 2006121500) {
-        $result = set_field_select('question_answers', 'answer', '*',
-            sql_compare_text('answer') . " = '" . sql_empty() . "' AND question IN (SELECT id FROM {$CFG->prefix}question WHERE qtype = '" . NUMERICAL . "')");
-    }
+//===== 1.9.0 upgrade line ======//
 
     return $result;
 }