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:
5f7d519
)
MDL-30610 add missing savepoint to get the upgrade checks passing.
author
Eloy Lafuente (stronk7)
<stronk7@moodle.org>
Mon, 2 Jan 2012 18:48:33 +0000
(19:48 +0100)
committer
Eloy 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
patch
|
blob
|
blame
|
history
diff --git
a/lib/db/upgrade.php
b/lib/db/upgrade.php
index
6d63ad7
..
ea92158
100644
(file)
--- a/
lib/db/upgrade.php
+++ b/
lib/db/upgrade.php
@@
-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);
}
////////////////////////////////////////