Remove unused rename_table() and PG override of $wgShowExceptionDetails. Less updater...
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 16 Aug 2010 13:16:34 +0000 (13:16 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 16 Aug 2010 13:16:34 +0000 (13:16 +0000)
maintenance/updaters.inc

index dc61a6b..1e590b7 100644 (file)
@@ -43,23 +43,6 @@ function update_row_exists( $key ) {
        return (bool)$row;
 }
 
-function rename_table( $from, $to, $patch ) {
-       global $wgDatabase;
-       if ( $wgDatabase->tableExists( $from ) ) {
-               if ( $wgDatabase->tableExists( $to ) ) {
-                       wfOut( "...can't move table $from to $to, $to already exists.\n" );
-               } else {
-                       wfOut( "Moving table $from to $to..." );
-                       $wgDatabase->sourceFile( archive( $patch ) );
-                       wfOut( "ok\n" );
-               }
-       } else {
-               // Source table does not exist
-               // Renames are done before creations, so this is typical for a new installation
-               // Ignore silently
-       }
-}
-
 function add_table( $name, $patch, $fullpath = false ) {
        global $wgDatabase;
        if ( $wgDatabase->tableExists( $name ) ) {
@@ -1316,8 +1299,6 @@ function do_postgres_updates() {
        $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:
        if ( !isset( $wgDBmwschema ) ) {
                $wgDBmwschema = 'mediawiki';