dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9c0ed3
)
Add default wgDBmwschema when doing Postgres upgrade, in case it was not in the Local...
author
Greg Sabino Mullane
<greg@users.mediawiki.org>
Sun, 8 Oct 2006 19:28:26 +0000
(19:28 +0000)
committer
Greg Sabino Mullane
<greg@users.mediawiki.org>
Sun, 8 Oct 2006 19:28:26 +0000
(19:28 +0000)
maintenance/updaters.inc
patch
|
blob
|
history
diff --git
a/maintenance/updaters.inc
b/maintenance/updaters.inc
index
d85f1eb
..
87913ba
100644
(file)
--- a/
maintenance/updaters.inc
+++ b/
maintenance/updaters.inc
@@
-859,10
+859,14
@@
function archive($name) {
}
function do_postgres_updates() {
- global $wgDatabase, $wgVersion;
+ global $wgDatabase, $wgVersion
, $wgDBmwschema
;
$version = "1.7.1";
+ # Just in case their LocalSetings.php does not have this:
+ if ( !isset( $wgDBmwschema ))
+ $wgDBmwschema = 'mediawiki';
+
if ($wgDatabase->tableExists("mediawiki_version")) {
$version = "1.8";
}
@@
-961,7
+965,7
@@
PGEND;
} ## end version 1.7.1 upgrade
else {
- print "No updates needed";
+ print "No updates needed
\n
";
}
return;