r78535 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78534‎ | r78535 | r78536 >
Date:15:49, 17 December 2010
Author:demon
Status:ok
Tags:
Comment:
More old installer cruft
Modified paths:
  • /trunk/phase3/includes/db/DatabaseOracle.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/DatabaseOracle.php
@@ -1069,36 +1069,6 @@
10701070 return true;
10711071 }
10721072
1073 - function setup_database() {
1074 - $res = $this->sourceFile( "../maintenance/oracle/tables.sql" );
1075 - if ( $res === true ) {
1076 - print " done.</li>\n";
1077 - } else {
1078 - print " <b>FAILED</b></li>\n";
1079 - dieout( htmlspecialchars( $res ) );
1080 - }
1081 -
1082 - // Avoid the non-standard "REPLACE INTO" syntax
1083 - echo "<li>Populating interwiki table</li>\n";
1084 - $f = fopen( "../maintenance/interwiki.sql", 'r' );
1085 - if ( !$f ) {
1086 - dieout( "Could not find the interwiki.sql file" );
1087 - }
1088 -
1089 - // do it like the postgres :D
1090 - $SQL = "INSERT INTO " . $this->tableName( 'interwiki' ) . " (iw_prefix,iw_url,iw_local) VALUES ";
1091 - while ( !feof( $f ) ) {
1092 - $line = fgets( $f, 1024 );
1093 - $matches = array();
1094 - if ( !preg_match( '/^\s*(\(.+?),(\d)\)/', $line, $matches ) ) {
1095 - continue;
1096 - }
1097 - $this->query( "$SQL $matches[1],$matches[2])" );
1098 - }
1099 -
1100 - echo "<li>Table interwiki successfully populated</li>\n";
1101 - }
1102 -
11031073 function selectDB( $db ) {
11041074 if ( $db == null || $db == $this->mUser ) { return true; }
11051075 $sql = 'ALTER SESSION SET CURRENT_SCHEMA=' . strtoupper($db);

Status & tagging log