Merge branch 'MDL-66072-master-3' of git://github.com/peterRd/moodle
[moodle.git] / lib / db / upgrade.php
index d0e61c4..abb4128 100644 (file)
@@ -3513,5 +3513,11 @@ function xmldb_main_upgrade($oldversion) {
         upgrade_main_savepoint(true, 2019083000.01);
     }
 
+    if ($oldversion < 2019083000.02) {
+        // Remove unused config.
+        unset_config('enablecoursepublishing');
+        upgrade_main_savepoint(true, 2019083000.02);
+    }
+
     return true;
 }