Permalink
Browse files

Merge branch 'MDL-30739_21' of git://github.com/timhunt/moodle into M…

…OODLE_21_STABLE
  • Loading branch information...
stronk7 committed Dec 20, 2011
2 parents 7d97d3a + 7f17672 commit 0a6d17e288d5c0b729c677f7585df95ce373890f
Showing with 6 additions and 4 deletions.
  1. +6 −4 question/type/numerical/db/upgrade.php
@@ -70,12 +70,14 @@ function xmldb_qtype_numerical_upgrade($oldversion) {
// Set a better default for questions without units.
$DB->execute('
UPDATE {question_numerical_options} qno
UPDATE {question_numerical_options}
SET showunits = 3
WHERE NOT EXISTS (
SELECT 1
FROM {question_numerical_units} qnu
WHERE qnu.question = qno.question)');
SELECT 1
FROM {question_numerical_units}
WHERE {question_numerical_units}.question =
{question_numerical_options}.question
)');
upgrade_plugin_savepoint(true, 2009100100, 'qtype', 'numerical');
}

0 comments on commit 0a6d17e

Please sign in to comment.