mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-30739' of git://github.com/timhunt/moodle
This commit is contained in:
commit
80472947dc
@ -70,12 +70,14 @@ function xmldb_qtype_numerical_upgrade($oldversion) {
|
|||||||
|
|
||||||
// Set a better default for questions without units.
|
// Set a better default for questions without units.
|
||||||
$DB->execute('
|
$DB->execute('
|
||||||
UPDATE {question_numerical_options} qno
|
UPDATE {question_numerical_options}
|
||||||
SET showunits = 3
|
SET showunits = 3
|
||||||
WHERE NOT EXISTS (
|
WHERE NOT EXISTS (
|
||||||
SELECT 1
|
SELECT 1
|
||||||
FROM {question_numerical_units} qnu
|
FROM {question_numerical_units}
|
||||||
WHERE qnu.question = qno.question)');
|
WHERE {question_numerical_units}.question =
|
||||||
|
{question_numerical_options}.question
|
||||||
|
)');
|
||||||
|
|
||||||
upgrade_plugin_savepoint(true, 2009100100, 'qtype', 'numerical');
|
upgrade_plugin_savepoint(true, 2009100100, 'qtype', 'numerical');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user