MDL-70073 badges: Fix the master upgrade savepoint
authorPeter Dias <peter@moodle.com>
Mon, 2 Nov 2020 02:17:30 +0000 (10:17 +0800)
committerPeter Dias <peter@moodle.com>
Mon, 2 Nov 2020 02:17:30 +0000 (10:17 +0800)
lib/db/upgrade.php

index 2edf311..e3e2548 100644 (file)
@@ -2911,10 +2911,10 @@ function xmldb_main_upgrade($oldversion) {
             }
 
             $dbman->drop_field($table, $field);
-
-            // Main savepoint reached.
-            upgrade_main_savepoint(true, 2021052500.33);
         }
+
+        // Main savepoint reached.
+        upgrade_main_savepoint(true, 2021052500.33);
     }
 
     if ($oldversion < 2021052500.36) {