From 87af5602d37612d71def212a4d12e0fbd45d090c Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 16 Aug 2010 13:16:34 +0000 Subject: [PATCH] Remove unused rename_table() and PG override of $wgShowExceptionDetails. Less updaters.inc is good :) --- maintenance/updaters.inc | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index dc61a6b0c1..1e590b7888 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -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'; -- 2.20.1