Skip to content

Commit

Permalink
MDL-14451 removed pre 1.9 upgrade code
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 14, 2008
1 parent c184660 commit 6751698
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions question/type/numerical/db/upgrade.php
Expand Up @@ -19,16 +19,11 @@

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;
}
Expand Down

0 comments on commit 6751698

Please sign in to comment.