MDL-30610 add missing savepoint to get the upgrade checks passing.
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 2 Jan 2012 18:48:33 +0000 (19:48 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 2 Jan 2012 18:48:33 +0000 (19:48 +0100)
Note the savepoint is 100% unreachable, because of the exit() call.
But it's needed to have all the upgrade checks (CI) balanced and
passing.

lib/db/upgrade.php

index 6d63ad7..ea92158 100644 (file)
@@ -63,6 +63,8 @@ function xmldb_main_upgrade($oldversion) {
         // just in case somebody hacks upgrade scripts or env, we really can not continue
         echo("You need to upgrade to 2.2.x first!\n");
         exit(1);
+        // Note this savepoint is 100% unreachable, but needed to pass the upgrade checks
+        upgrade_main_savepoint(true, 2011120500);
     }
 
     ////////////////////////////////////////