Index: trunk/phase3/includes/db/DatabaseOracle.php |
— | — | @@ -1069,36 +1069,6 @@ |
1070 | 1070 | return true; |
1071 | 1071 | } |
1072 | 1072 | |
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 | | - |
1103 | 1073 | function selectDB( $db ) { |
1104 | 1074 | if ( $db == null || $db == $this->mUser ) { return true; } |
1105 | 1075 | $sql = 'ALTER SESSION SET CURRENT_SCHEMA=' . strtoupper($db); |