Abstract database setup into its own method, remove unused oracle table calls.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 16 Jul 2006 12:29:32 +0000 (12:29 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 16 Jul 2006 12:29:32 +0000 (12:29 +0000)
config/index.php

index 7e9315f..6626b61 100644 (file)
@@ -781,11 +781,7 @@ error_reporting( E_ALL );
                                }
                                dbsource( "../maintenance/interwiki.sql", $wgDatabase );
                        } else if ($conf->DBtype == 'postgres') {
-                               dbsource( "../maintenance/postgres/tables.sql", $wgDatabase );
-                               $wgDatabase->update_interwiki();
-                       } else if ($conf->DBtype == 'oracle') {
-                               dbsource( "../maintenance/oracle/tables.sql", $wgDatabase );
-                               dbsource( "../maintenance/oracle/interwiki.sql", $wgDatabase );
+                               $wgDatabase->setup_database();
                        }
                        else {
                                $errs["DBtype"] = "Do not know how to handle database type '$conf->DBtype'";