MDL-53566 core: add back upgrade code removed @ 0616f04 by mistake
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 14 Nov 2018 00:04:46 +0000 (01:04 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 14 Nov 2018 00:04:46 +0000 (01:04 +0100)
lib/db/upgrade.php

index b78d8d4..9e9cadd 100644 (file)
@@ -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);
     }