From: Greg Sabino Mullane Date: Sun, 17 Feb 2008 14:07:28 +0000 (+0000) Subject: Get Postgres version for future use. X-Git-Tag: 1.31.0-rc.0~49465 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=f15c9ecafc6cfcc2b2f9fdcfd9d262369ae59610;p=lhc%2Fweb%2Fwiklou.git Get Postgres version for future use. --- diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 7687d8b15f..41a2b0ae4b 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1261,6 +1261,10 @@ END; function do_postgres_updates() { global $wgDatabase, $wgVersion, $wgDBmwschema, $wgDBts2schema, $wgShowExceptionDetails, $wgDBuser; + ## Gather version numbers in case we need them + $version = $wgDatabase->getServerVersion(); ## long string + $numver = $wgDatabase->numeric_version; ## X.Y e.g. 8.3 + $wgShowExceptionDetails = 1; # Just in case their LocalSettings.php does not have this: