Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1bfdd
)
MDL-32113 qtype_numerical: Fix db upgrade step
author
Damyon Wiese
<damyon@moodle.com>
Tue, 19 Dec 2017 08:54:25 +0000
(16:54 +0800)
committer
Damyon Wiese
<damyon@moodle.com>
Tue, 19 Dec 2017 08:54:25 +0000
(16:54 +0800)
The upgrade step was creating a column with no default, which is different to the structure
for a new install. This was picked up by the magical cibot.
question/type/numerical/db/upgrade.php
patch
|
blob
|
blame
|
history
diff --git
a/question/type/numerical/db/upgrade.php
b/question/type/numerical/db/upgrade.php
index
050ffe3
..
c4f6323
100644
(file)
--- a/
question/type/numerical/db/upgrade.php
+++ b/
question/type/numerical/db/upgrade.php
@@
-37,7
+37,7
@@
function xmldb_qtype_numerical_upgrade($oldversion) {
// Changing length of field multiplier on table question_numerical_units to 38.
$table = new xmldb_table('question_numerical_units');
- $field = new xmldb_field('multiplier', XMLDB_TYPE_NUMBER, '38, 19', null, XMLDB_NOTNULL, null,
null, 'question
');
+ $field = new xmldb_field('multiplier', XMLDB_TYPE_NUMBER, '38, 19', null, XMLDB_NOTNULL, null,
'1.00000000000000000000
');
// Launch change of length for field multiplier.
$dbman->change_field_type($table, $field);