2010-05-07 12:25:01 +00:00
|
|
|
<?php
|
2010-08-21 18:20:09 +00:00
|
|
|
/**
|
|
|
|
|
* Oracle-specific installer.
|
|
|
|
|
*
|
|
|
|
|
* @file
|
|
|
|
|
* @ingroup Deployment
|
|
|
|
|
*/
|
2010-12-19 04:31:15 +00:00
|
|
|
|
2010-07-29 18:36:39 +00:00
|
|
|
/**
|
|
|
|
|
* Class for setting up the MediaWiki database using Oracle.
|
2010-12-06 20:04:28 +00:00
|
|
|
*
|
2010-07-29 18:36:39 +00:00
|
|
|
* @ingroup Deployment
|
|
|
|
|
* @since 1.17
|
|
|
|
|
*/
|
2010-07-20 09:30:33 +00:00
|
|
|
class OracleInstaller extends DatabaseInstaller {
|
2010-05-07 12:25:01 +00:00
|
|
|
|
|
|
|
|
protected $globalNames = array(
|
2011-01-14 07:05:21 +00:00
|
|
|
'wgDBserver',
|
2010-05-07 12:25:01 +00:00
|
|
|
'wgDBname',
|
|
|
|
|
'wgDBuser',
|
|
|
|
|
'wgDBpassword',
|
|
|
|
|
'wgDBprefix',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
protected $internalDefaults = array(
|
2010-10-18 16:09:18 +00:00
|
|
|
'_OracleDefTS' => 'USERS',
|
2011-01-10 19:22:27 +00:00
|
|
|
'_OracleTempTS' => 'TEMP'
|
2010-05-07 12:25:01 +00:00
|
|
|
);
|
2011-01-10 19:22:27 +00:00
|
|
|
|
|
|
|
|
protected $useSysDBA = false;
|
2010-05-07 12:25:01 +00:00
|
|
|
|
2010-10-19 06:25:12 +00:00
|
|
|
public $minimumVersion = '9.0.1'; // 9iR1
|
|
|
|
|
|
2010-07-20 11:27:52 +00:00
|
|
|
public function getName() {
|
2010-05-07 12:25:01 +00:00
|
|
|
return 'oracle';
|
|
|
|
|
}
|
|
|
|
|
|
2010-07-07 13:52:05 +00:00
|
|
|
public function isCompiled() {
|
2010-07-07 02:53:19 +00:00
|
|
|
return self::checkExtension( 'oci8' );
|
2010-05-07 12:25:01 +00:00
|
|
|
}
|
|
|
|
|
|
2010-10-18 16:09:18 +00:00
|
|
|
public function getWebUserBox( $noCreateMsg = false ) {
|
|
|
|
|
$this->parent->setVar( '_SameAccount', false );
|
|
|
|
|
$this->parent->setVar( '_CreateDBAccount', true );
|
|
|
|
|
$this->parent->setVar( 'wgDBname', '' );
|
2010-11-04 23:21:24 +00:00
|
|
|
return Html::openElement( 'fieldset' ) .
|
|
|
|
|
Html::element( 'legend', array(), wfMsg( 'config-db-web-account' ) ) .
|
|
|
|
|
Html::openElement( 'div', array( 'id' => 'dbOtherAccount' ) ) .
|
2010-10-18 16:09:18 +00:00
|
|
|
$this->getTextBox( 'wgDBuser', 'config-db-username' ) .
|
2010-12-06 20:04:28 +00:00
|
|
|
$this->getPasswordBox( 'wgDBpassword', 'config-db-password', array(), $this->parent->getHelpBox( 'config-db-web-help' ) ) .
|
2010-10-18 16:09:18 +00:00
|
|
|
$this->getCheckBox( '_CreateDBAccount', 'config-db-web-create', array( 'disabled' => true ) ).
|
2010-11-04 23:21:24 +00:00
|
|
|
Html::closeElement( 'div' ) . Html::closeElement( 'fieldset' );
|
2010-10-18 16:09:18 +00:00
|
|
|
}
|
|
|
|
|
|
2010-07-20 11:27:52 +00:00
|
|
|
public function getConnectForm() {
|
2010-10-18 16:09:18 +00:00
|
|
|
$this->parent->setVar( '_InstallUser', 'sys' );
|
|
|
|
|
$this->parent->setVar( 'wgDBserver', '' );
|
2010-05-07 12:25:01 +00:00
|
|
|
return
|
2010-12-06 20:04:28 +00:00
|
|
|
$this->getTextBox( 'wgDBserver', 'config-db-host-oracle', array(), $this->parent->getHelpBox( 'config-db-host-oracle-help' ) ) .
|
2010-11-04 23:23:34 +00:00
|
|
|
Html::openElement( 'fieldset' ) .
|
|
|
|
|
Html::element( 'legend', array(), wfMsg( 'config-db-wiki-settings' ) ) .
|
2010-05-07 12:25:01 +00:00
|
|
|
$this->getTextBox( 'wgDBprefix', 'config-db-prefix' ) .
|
2010-10-18 16:09:18 +00:00
|
|
|
$this->getTextBox( '_OracleDefTS', 'config-oracle-def-ts' ) .
|
2010-12-06 20:04:28 +00:00
|
|
|
$this->getTextBox( '_OracleTempTS', 'config-oracle-temp-ts', array(), $this->parent->getHelpBox( 'config-db-oracle-help' ) ) .
|
2010-11-04 23:23:34 +00:00
|
|
|
Html::closeElement( 'fieldset' ) .
|
2010-10-18 16:09:18 +00:00
|
|
|
$this->getInstallUserBox().
|
|
|
|
|
$this->getWebUserBox();
|
2010-05-07 12:25:01 +00:00
|
|
|
}
|
|
|
|
|
|
2010-07-20 11:27:52 +00:00
|
|
|
public function submitConnectForm() {
|
2010-05-07 12:25:01 +00:00
|
|
|
// Get variables from the request
|
2010-10-18 16:09:18 +00:00
|
|
|
$newValues = $this->setVarsFromRequest( array( 'wgDBserver', 'wgDBprefix', 'wgDBuser', 'wgDBpassword' ) );
|
|
|
|
|
$this->parent->setVar( 'wgDBname', $this->getVar( 'wgDBuser' ) );
|
2010-05-07 12:25:01 +00:00
|
|
|
|
|
|
|
|
// Validate them
|
|
|
|
|
$status = Status::newGood();
|
2010-10-18 16:09:18 +00:00
|
|
|
if ( !strlen( $newValues['wgDBserver'] ) ) {
|
|
|
|
|
$status->fatal( 'config-missing-db-server-oracle' );
|
|
|
|
|
} elseif ( !preg_match( '/^[a-zA-Z0-9_\.]+$/', $newValues['wgDBserver'] ) ) {
|
|
|
|
|
$status->fatal( 'config-invalid-db-server-oracle', $newValues['wgDBserver'] );
|
2010-05-07 12:25:01 +00:00
|
|
|
}
|
|
|
|
|
if ( !preg_match( '/^[a-zA-Z0-9_]*$/', $newValues['wgDBprefix'] ) ) {
|
|
|
|
|
$status->fatal( 'config-invalid-schema', $newValues['wgDBprefix'] );
|
|
|
|
|
}
|
2010-10-18 16:09:18 +00:00
|
|
|
if ( !$status->isOK() ) {
|
|
|
|
|
return $status;
|
|
|
|
|
}
|
2010-05-07 12:25:01 +00:00
|
|
|
|
|
|
|
|
// Submit user box
|
2010-10-18 16:09:18 +00:00
|
|
|
$status = $this->submitInstallUserBox();
|
2010-05-07 12:25:01 +00:00
|
|
|
if ( !$status->isOK() ) {
|
|
|
|
|
return $status;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Try to connect
|
2011-01-10 19:22:27 +00:00
|
|
|
$this->useSysDBA = true;
|
2010-10-18 16:09:18 +00:00
|
|
|
$status = $this->getConnection();
|
2010-05-07 12:25:01 +00:00
|
|
|
if ( !$status->isOK() ) {
|
|
|
|
|
return $status;
|
|
|
|
|
}
|
2010-10-18 16:09:18 +00:00
|
|
|
$conn = $status->value;
|
2010-05-07 12:25:01 +00:00
|
|
|
|
2010-10-18 16:09:18 +00:00
|
|
|
// Check version
|
|
|
|
|
$version = $conn->getServerVersion();
|
2010-05-07 12:25:01 +00:00
|
|
|
if ( version_compare( $version, $this->minimumVersion ) < 0 ) {
|
2010-10-19 06:25:12 +00:00
|
|
|
return Status::newFatal( 'config-oracle-old', $this->minimumVersion, $version );
|
2010-05-07 12:25:01 +00:00
|
|
|
}
|
2010-10-19 06:25:12 +00:00
|
|
|
|
2010-05-07 12:25:01 +00:00
|
|
|
return $status;
|
|
|
|
|
}
|
|
|
|
|
|
* Fixed a bug causing the installer to ignore the "engine" and "charset" settings when installing a MySQL database.
* Fixed a bug causing the engine and charset settings to not be properly preserved when adding new tables on upgrade.
* Fixed total breakage of SQLite upgrade, by reusing the administrative connection to the SQLite database instead of creating a new one when wfGetDB() is called. Added LBFactory_Single to support this.
* Introduced a "schema variable" concept to DatabaseBase to avoid the use of globals for communication between the installer and the Database. Removed a lot of old global variable names from Database::replaceVars(), most were only added on a whim and were never used.
* Introduced DatabaseInstaller::getSchemaVars(), to allow schema variables to be supplied by the DatabaseInstaller child classes.
* Removed messages config-mysql-egine-mismatch [sic] and config-mysql-charset-mismatch. In the old installer it was possible for users to request a certain character set for an upgrade, but in the new installer the question is never asked. So these warnings were shown whenever a non-default character set or engine was used in the old database.
* In MysqlInstaller::preUpgrade(), fixed the incorrect strings used to identify the MySQL character sets: mysql5 instead of utf8 and mysql5-binary instead of binary.
* On install, initialise the site_stats table, using code copied from the old installer. Unlike the old installer, use SiteStats to increment the user count when the initial user is added.
* Fixed several instances of inappropriate call-by-reference.
* Replaced call_user_func_array() with call_user_func() where possible, it is shorter and simpler.
* Moved the caching boilerplate for DatabaseInstaller::getConnection() to the base class, and have the derived classes override an uncached function openConnection() instead. Updates r80892.
* In MysqlInstaller::getLocalSettings(), escape PHP strings correctly with LocalSettingsGenerator::escapePhpString().
* Reduce timeout for checks in dirIsExecutable() to 3 seconds, so that it doesn't take 30s to run when apache is in single-threaded mode for debugging.
* MySQL and SQLite have been tested and they appear to work. PostgreSQL upgrade is totally broken, apparently it was like that before I started. The Oracle code is untested.
2011-01-25 07:37:48 +00:00
|
|
|
public function openConnection() {
|
2010-09-01 19:09:27 +00:00
|
|
|
$status = Status::newGood();
|
|
|
|
|
try {
|
2011-01-10 19:22:27 +00:00
|
|
|
if ( $this->useSysDBA ) {
|
* Fixed a bug causing the installer to ignore the "engine" and "charset" settings when installing a MySQL database.
* Fixed a bug causing the engine and charset settings to not be properly preserved when adding new tables on upgrade.
* Fixed total breakage of SQLite upgrade, by reusing the administrative connection to the SQLite database instead of creating a new one when wfGetDB() is called. Added LBFactory_Single to support this.
* Introduced a "schema variable" concept to DatabaseBase to avoid the use of globals for communication between the installer and the Database. Removed a lot of old global variable names from Database::replaceVars(), most were only added on a whim and were never used.
* Introduced DatabaseInstaller::getSchemaVars(), to allow schema variables to be supplied by the DatabaseInstaller child classes.
* Removed messages config-mysql-egine-mismatch [sic] and config-mysql-charset-mismatch. In the old installer it was possible for users to request a certain character set for an upgrade, but in the new installer the question is never asked. So these warnings were shown whenever a non-default character set or engine was used in the old database.
* In MysqlInstaller::preUpgrade(), fixed the incorrect strings used to identify the MySQL character sets: mysql5 instead of utf8 and mysql5-binary instead of binary.
* On install, initialise the site_stats table, using code copied from the old installer. Unlike the old installer, use SiteStats to increment the user count when the initial user is added.
* Fixed several instances of inappropriate call-by-reference.
* Replaced call_user_func_array() with call_user_func() where possible, it is shorter and simpler.
* Moved the caching boilerplate for DatabaseInstaller::getConnection() to the base class, and have the derived classes override an uncached function openConnection() instead. Updates r80892.
* In MysqlInstaller::getLocalSettings(), escape PHP strings correctly with LocalSettingsGenerator::escapePhpString().
* Reduce timeout for checks in dirIsExecutable() to 3 seconds, so that it doesn't take 30s to run when apache is in single-threaded mode for debugging.
* MySQL and SQLite have been tested and they appear to work. PostgreSQL upgrade is totally broken, apparently it was like that before I started. The Oracle code is untested.
2011-01-25 07:37:48 +00:00
|
|
|
$db = new DatabaseOracle(
|
2010-10-18 16:09:18 +00:00
|
|
|
$this->getVar( 'wgDBserver' ),
|
|
|
|
|
$this->getVar( '_InstallUser' ),
|
|
|
|
|
$this->getVar( '_InstallPassword' ),
|
|
|
|
|
$this->getVar( 'wgDBname' ),
|
2011-01-10 19:22:27 +00:00
|
|
|
DBO_SYSDBA | DBO_DDLMODE,
|
2010-10-18 16:09:18 +00:00
|
|
|
$this->getVar( 'wgDBprefix' )
|
|
|
|
|
);
|
|
|
|
|
} else {
|
* Fixed a bug causing the installer to ignore the "engine" and "charset" settings when installing a MySQL database.
* Fixed a bug causing the engine and charset settings to not be properly preserved when adding new tables on upgrade.
* Fixed total breakage of SQLite upgrade, by reusing the administrative connection to the SQLite database instead of creating a new one when wfGetDB() is called. Added LBFactory_Single to support this.
* Introduced a "schema variable" concept to DatabaseBase to avoid the use of globals for communication between the installer and the Database. Removed a lot of old global variable names from Database::replaceVars(), most were only added on a whim and were never used.
* Introduced DatabaseInstaller::getSchemaVars(), to allow schema variables to be supplied by the DatabaseInstaller child classes.
* Removed messages config-mysql-egine-mismatch [sic] and config-mysql-charset-mismatch. In the old installer it was possible for users to request a certain character set for an upgrade, but in the new installer the question is never asked. So these warnings were shown whenever a non-default character set or engine was used in the old database.
* In MysqlInstaller::preUpgrade(), fixed the incorrect strings used to identify the MySQL character sets: mysql5 instead of utf8 and mysql5-binary instead of binary.
* On install, initialise the site_stats table, using code copied from the old installer. Unlike the old installer, use SiteStats to increment the user count when the initial user is added.
* Fixed several instances of inappropriate call-by-reference.
* Replaced call_user_func_array() with call_user_func() where possible, it is shorter and simpler.
* Moved the caching boilerplate for DatabaseInstaller::getConnection() to the base class, and have the derived classes override an uncached function openConnection() instead. Updates r80892.
* In MysqlInstaller::getLocalSettings(), escape PHP strings correctly with LocalSettingsGenerator::escapePhpString().
* Reduce timeout for checks in dirIsExecutable() to 3 seconds, so that it doesn't take 30s to run when apache is in single-threaded mode for debugging.
* MySQL and SQLite have been tested and they appear to work. PostgreSQL upgrade is totally broken, apparently it was like that before I started. The Oracle code is untested.
2011-01-25 07:37:48 +00:00
|
|
|
$db = new DatabaseOracle(
|
2010-10-18 16:09:18 +00:00
|
|
|
$this->getVar( 'wgDBserver' ),
|
|
|
|
|
$this->getVar( 'wgDBuser' ),
|
|
|
|
|
$this->getVar( 'wgDBpassword' ),
|
|
|
|
|
$this->getVar( 'wgDBname' ),
|
|
|
|
|
0,
|
|
|
|
|
$this->getVar( 'wgDBprefix' )
|
|
|
|
|
);
|
|
|
|
|
}
|
* Fixed a bug causing the installer to ignore the "engine" and "charset" settings when installing a MySQL database.
* Fixed a bug causing the engine and charset settings to not be properly preserved when adding new tables on upgrade.
* Fixed total breakage of SQLite upgrade, by reusing the administrative connection to the SQLite database instead of creating a new one when wfGetDB() is called. Added LBFactory_Single to support this.
* Introduced a "schema variable" concept to DatabaseBase to avoid the use of globals for communication between the installer and the Database. Removed a lot of old global variable names from Database::replaceVars(), most were only added on a whim and were never used.
* Introduced DatabaseInstaller::getSchemaVars(), to allow schema variables to be supplied by the DatabaseInstaller child classes.
* Removed messages config-mysql-egine-mismatch [sic] and config-mysql-charset-mismatch. In the old installer it was possible for users to request a certain character set for an upgrade, but in the new installer the question is never asked. So these warnings were shown whenever a non-default character set or engine was used in the old database.
* In MysqlInstaller::preUpgrade(), fixed the incorrect strings used to identify the MySQL character sets: mysql5 instead of utf8 and mysql5-binary instead of binary.
* On install, initialise the site_stats table, using code copied from the old installer. Unlike the old installer, use SiteStats to increment the user count when the initial user is added.
* Fixed several instances of inappropriate call-by-reference.
* Replaced call_user_func_array() with call_user_func() where possible, it is shorter and simpler.
* Moved the caching boilerplate for DatabaseInstaller::getConnection() to the base class, and have the derived classes override an uncached function openConnection() instead. Updates r80892.
* In MysqlInstaller::getLocalSettings(), escape PHP strings correctly with LocalSettingsGenerator::escapePhpString().
* Reduce timeout for checks in dirIsExecutable() to 3 seconds, so that it doesn't take 30s to run when apache is in single-threaded mode for debugging.
* MySQL and SQLite have been tested and they appear to work. PostgreSQL upgrade is totally broken, apparently it was like that before I started. The Oracle code is untested.
2011-01-25 07:37:48 +00:00
|
|
|
$status->value = $db;
|
2010-09-01 19:09:27 +00:00
|
|
|
} catch ( DBConnectionError $e ) {
|
|
|
|
|
$status->fatal( 'config-connection-error', $e->getMessage() );
|
|
|
|
|
}
|
|
|
|
|
return $status;
|
2010-07-20 11:27:52 +00:00
|
|
|
}
|
2010-05-07 12:25:01 +00:00
|
|
|
|
2010-10-18 16:09:18 +00:00
|
|
|
public function needsUpgrade() {
|
|
|
|
|
$tempDBname = $this->getVar( 'wgDBname' );
|
|
|
|
|
$this->parent->setVar( 'wgDBname', $this->getVar( 'wgDBuser' ) );
|
|
|
|
|
$retVal = parent::needsUpgrade();
|
|
|
|
|
$this->parent->setVar( 'wgDBname', $tempDBname );
|
|
|
|
|
return $retVal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function preInstall() {
|
|
|
|
|
# Add our user callback to installSteps, right before the tables are created.
|
|
|
|
|
$callback = array(
|
2011-01-10 19:22:27 +00:00
|
|
|
'name' => 'user',
|
|
|
|
|
'callback' => array( $this, 'setupUser' )
|
2010-10-18 16:09:18 +00:00
|
|
|
);
|
2010-12-23 20:24:11 +00:00
|
|
|
$this->parent->addInstallStep( $callback, 'database' );
|
2010-10-18 16:09:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2010-07-20 11:27:52 +00:00
|
|
|
public function setupDatabase() {
|
2011-01-10 19:22:27 +00:00
|
|
|
$this->useSysDBA = false;
|
2010-10-18 16:09:18 +00:00
|
|
|
$status = Status::newGood();
|
|
|
|
|
return $status;
|
2010-07-20 11:27:52 +00:00
|
|
|
}
|
2010-05-07 12:25:01 +00:00
|
|
|
|
2010-10-18 16:09:18 +00:00
|
|
|
public function setupUser() {
|
|
|
|
|
global $IP;
|
|
|
|
|
|
|
|
|
|
if ( !$this->getVar( '_CreateDBAccount' ) ) {
|
|
|
|
|
return Status::newGood();
|
|
|
|
|
}
|
2011-01-10 19:22:27 +00:00
|
|
|
|
|
|
|
|
$this->useSysDBA = true;
|
2010-10-18 16:09:18 +00:00
|
|
|
$status = $this->getConnection();
|
|
|
|
|
if ( !$status->isOK() ) {
|
|
|
|
|
return $status;
|
|
|
|
|
}
|
2010-12-19 04:31:15 +00:00
|
|
|
|
2010-10-27 14:52:18 +00:00
|
|
|
if ( !$this->db->selectDB( $this->getVar( 'wgDBuser' ) ) ) {
|
2011-01-10 19:22:27 +00:00
|
|
|
$this->db->setFlag( DBO_DDLMODE );
|
2010-10-27 14:52:18 +00:00
|
|
|
$error = $this->db->sourceFile( "$IP/maintenance/oracle/user.sql" );
|
|
|
|
|
if ( $error !== true || !$this->db->selectDB( $this->getVar( 'wgDBuser' ) ) ) {
|
|
|
|
|
$status->fatal( 'config-install-user-failed', $this->getVar( 'wgDBuser' ), $error );
|
|
|
|
|
}
|
2010-10-18 16:09:18 +00:00
|
|
|
}
|
2010-12-19 04:31:15 +00:00
|
|
|
|
2010-10-18 16:09:18 +00:00
|
|
|
return $status;
|
|
|
|
|
}
|
2010-10-25 11:07:55 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Overload: after this action field info table has to be rebuilt
|
|
|
|
|
*/
|
|
|
|
|
public function createTables() {
|
|
|
|
|
$status = parent::createTables();
|
|
|
|
|
|
2010-12-15 20:59:29 +00:00
|
|
|
$this->db->query( 'BEGIN fill_wiki_info; END;' );
|
2010-10-25 11:07:55 +00:00
|
|
|
|
|
|
|
|
return $status;
|
|
|
|
|
}
|
|
|
|
|
|
* Fixed a bug causing the installer to ignore the "engine" and "charset" settings when installing a MySQL database.
* Fixed a bug causing the engine and charset settings to not be properly preserved when adding new tables on upgrade.
* Fixed total breakage of SQLite upgrade, by reusing the administrative connection to the SQLite database instead of creating a new one when wfGetDB() is called. Added LBFactory_Single to support this.
* Introduced a "schema variable" concept to DatabaseBase to avoid the use of globals for communication between the installer and the Database. Removed a lot of old global variable names from Database::replaceVars(), most were only added on a whim and were never used.
* Introduced DatabaseInstaller::getSchemaVars(), to allow schema variables to be supplied by the DatabaseInstaller child classes.
* Removed messages config-mysql-egine-mismatch [sic] and config-mysql-charset-mismatch. In the old installer it was possible for users to request a certain character set for an upgrade, but in the new installer the question is never asked. So these warnings were shown whenever a non-default character set or engine was used in the old database.
* In MysqlInstaller::preUpgrade(), fixed the incorrect strings used to identify the MySQL character sets: mysql5 instead of utf8 and mysql5-binary instead of binary.
* On install, initialise the site_stats table, using code copied from the old installer. Unlike the old installer, use SiteStats to increment the user count when the initial user is added.
* Fixed several instances of inappropriate call-by-reference.
* Replaced call_user_func_array() with call_user_func() where possible, it is shorter and simpler.
* Moved the caching boilerplate for DatabaseInstaller::getConnection() to the base class, and have the derived classes override an uncached function openConnection() instead. Updates r80892.
* In MysqlInstaller::getLocalSettings(), escape PHP strings correctly with LocalSettingsGenerator::escapePhpString().
* Reduce timeout for checks in dirIsExecutable() to 3 seconds, so that it doesn't take 30s to run when apache is in single-threaded mode for debugging.
* MySQL and SQLite have been tested and they appear to work. PostgreSQL upgrade is totally broken, apparently it was like that before I started. The Oracle code is untested.
2011-01-25 07:37:48 +00:00
|
|
|
public function getSchemaVars() {
|
|
|
|
|
/**
|
|
|
|
|
* The variables $_OracleDefTS, $_OracleTempTS are used by maintenance/oracle/user.sql
|
|
|
|
|
*/
|
|
|
|
|
return array(
|
|
|
|
|
'_OracleDefTS' => $this->getVar( '_OracleDefTS' ),
|
|
|
|
|
'_OracleTempTS' => $this->getVar( '_OracleTempTS' ),
|
|
|
|
|
);
|
|
|
|
|
}
|
2010-12-19 04:31:15 +00:00
|
|
|
|
2010-07-20 11:27:52 +00:00
|
|
|
public function getLocalSettings() {
|
2010-05-07 12:25:01 +00:00
|
|
|
$prefix = $this->getVar( 'wgDBprefix' );
|
|
|
|
|
return
|
|
|
|
|
"# Oracle specific settings
|
2010-10-25 11:07:55 +00:00
|
|
|
\$wgDBprefix = \"{$prefix}\";
|
|
|
|
|
";
|
2010-05-07 12:25:01 +00:00
|
|
|
}
|
2010-08-22 10:37:27 +00:00
|
|
|
|
2010-10-18 16:09:18 +00:00
|
|
|
}
|