Get Postgres version for future use.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 17 Feb 2008 14:07:28 +0000 (14:07 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 17 Feb 2008 14:07:28 +0000 (14:07 +0000)
maintenance/updaters.inc

index 7687d8b..41a2b0a 100644 (file)
@@ -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: