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:
d27e494
)
MDL-53566 core: add back upgrade code removed @ 0616f04 by mistake
author
Eloy Lafuente (stronk7)
<stronk7@moodle.org>
Wed, 14 Nov 2018 00:04:46 +0000
(
01:04
+0100)
committer
Eloy Lafuente (stronk7)
<stronk7@moodle.org>
Wed, 14 Nov 2018 00:04:46 +0000
(
01:04
+0100)
lib/db/upgrade.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/db/upgrade.php
b/lib/db/upgrade.php
index
b78d8d4
..
9e9cadd
100644
(file)
--- a/
lib/db/upgrade.php
+++ b/
lib/db/upgrade.php
@@
-2658,6
+2658,10
@@
function xmldb_main_upgrade($oldversion) {
$field = new xmldb_field('predictionsprocessor', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'timesplitting');
// Conditionally launch add field predictionsprocessor.
+ if (!$dbman->field_exists($table, $field)) {
+ $dbman->add_field($table, $field);
+ }
+
// Main savepoint reached.
upgrade_main_savepoint(true, 2018102900.00);
}