From: Chad Horohoe Date: Fri, 17 Dec 2010 15:49:51 +0000 (+0000) Subject: More old installer cruft X-Git-Tag: 1.31.0-rc.0~33252 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=358539bc1d4ef4070bc9ab949bf0a4bea210edbc;p=lhc%2Fweb%2Fwiklou.git More old installer cruft --- diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index c5f6a3d675..63e68f04f5 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -1069,36 +1069,6 @@ class DatabaseOracle extends DatabaseBase { return true; } - function setup_database() { - $res = $this->sourceFile( "../maintenance/oracle/tables.sql" ); - if ( $res === true ) { - print " done.\n"; - } else { - print " FAILED\n"; - dieout( htmlspecialchars( $res ) ); - } - - // Avoid the non-standard "REPLACE INTO" syntax - echo "
  • Populating interwiki table
  • \n"; - $f = fopen( "../maintenance/interwiki.sql", 'r' ); - if ( !$f ) { - dieout( "Could not find the interwiki.sql file" ); - } - - // do it like the postgres :D - $SQL = "INSERT INTO " . $this->tableName( 'interwiki' ) . " (iw_prefix,iw_url,iw_local) VALUES "; - while ( !feof( $f ) ) { - $line = fgets( $f, 1024 ); - $matches = array(); - if ( !preg_match( '/^\s*(\(.+?),(\d)\)/', $line, $matches ) ) { - continue; - } - $this->query( "$SQL $matches[1],$matches[2])" ); - } - - echo "
  • Table interwiki successfully populated
  • \n"; - } - function selectDB( $db ) { if ( $db == null || $db == $this->mUser ) { return true; } $sql = 'ALTER SESSION SET CURRENT_SCHEMA=' . strtoupper($db);