From: Chad Horohoe Date: Sat, 17 Jul 2010 12:11:23 +0000 (+0000) Subject: Add stub OracleUpdater X-Git-Tag: 1.31.0-rc.0~36122 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=8b8b40aa636b64f97cdf72170b9b9b9c23065f12;p=lhc%2Fweb%2Fwiklou.git Add stub OracleUpdater --- diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index 1fe3f815d7..2b4d91a915 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -426,6 +426,7 @@ $wgAutoloadLocalClasses = array( 'SqliteInstaller' => 'includes/installer/SqliteInstaller.php', 'SqliteUpdater' => 'includes/installer/Updaters.php', 'OracleInstaller' => 'includes/installer/OracleInstaller.php', + 'OracleUpdater' => 'includes/installer/Updaters.php', 'Update' => 'includes/installer/Update.php', 'Updaters' => 'includes/installer/Updaters.php', diff --git a/includes/installer/Update.php b/includes/installer/Update.php index aa446ec10c..96ad2fd99e 100644 --- a/includes/installer/Update.php +++ b/includes/installer/Update.php @@ -21,6 +21,9 @@ class Update { case 'sqlite': $this->updater = new SqliteUpdater(); break; + case 'oracle': + $this->updater = new OracleUpdater(); + break; default: throw new MWException( __METHOD__ . ' called for unsupported $wgDBtype' ); } diff --git a/includes/installer/Updaters.php b/includes/installer/Updaters.php index c8dc5d154a..ea4d21a6fb 100644 --- a/includes/installer/Updaters.php +++ b/includes/installer/Updaters.php @@ -210,3 +210,12 @@ class SqliteUpdater implements Updaters { ); } } + +/** + * Oracle + */ +class OracleUpdater implements Updaters { + public function getUpdates() { + return array(); + } +}