Add stub OracleUpdater
authorChad Horohoe <demon@users.mediawiki.org>
Sat, 17 Jul 2010 12:11:23 +0000 (12:11 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sat, 17 Jul 2010 12:11:23 +0000 (12:11 +0000)
includes/AutoLoader.php
includes/installer/Update.php
includes/installer/Updaters.php

index 1fe3f81..2b4d91a 100644 (file)
@@ -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',
 
index aa446ec..96ad2fd 100644 (file)
@@ -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' );
                }
index c8dc5d1..ea4d21a 100644 (file)
@@ -210,3 +210,12 @@ class SqliteUpdater implements Updaters {
                );
        }
 }
+
+/**
+ * Oracle
+ */
+class OracleUpdater implements Updaters {
+       public function getUpdates() {
+               return array();
+       }
+}