From 8b8b40aa636b64f97cdf72170b9b9b9c23065f12 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 17 Jul 2010 12:11:23 +0000 Subject: [PATCH] Add stub OracleUpdater --- includes/AutoLoader.php | 1 + includes/installer/Update.php | 3 +++ includes/installer/Updaters.php | 9 +++++++++ 3 files changed, 13 insertions(+) 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(); + } +} -- 2.20.1