diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /includes/installer/OracleUpdater.php | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'includes/installer/OracleUpdater.php')
-rw-r--r-- | includes/installer/OracleUpdater.php | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/includes/installer/OracleUpdater.php b/includes/installer/OracleUpdater.php index 7664a418..fb8032f5 100644 --- a/includes/installer/OracleUpdater.php +++ b/includes/installer/OracleUpdater.php @@ -13,15 +13,31 @@ * @since 1.17 */ class OracleUpdater extends DatabaseUpdater { + + /** + * Handle to the database subclass + * + * @var DatabaseOracle + */ + protected $db; + protected function getCoreUpdateList() { return array( - // 1.16 + // 1.17 array( 'doNamespaceDefaults' ), array( 'doFKRenameDeferr' ), array( 'doFunctions17' ), array( 'doSchemaUpgrade17' ), array( 'doInsertPage0' ), array( 'doRemoveNotNullEmptyDefaults' ), + array( 'addTable', 'user_former_groups', 'patch-user_former_groups.sql' ), + + //1.18 + array( 'addIndex', 'user', 'i02', 'patch-user_email_index.sql' ), + array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ), + array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ), + array( 'doRebuildDuplicateFunction' ), + ); } @@ -74,7 +90,7 @@ class OracleUpdater extends DatabaseUpdater { protected function doSchemaUpgrade17() { $this->output( "Updating schema to 17 ... " ); // check if iwlinks table exists which was added in 1.17 - if ( $this->db->tableExists( $this->db->tableName( 'iwlinks' ) ) ) { + if ( $this->db->tableExists( 'iwlinks' ) ) { $this->output( "schema seem to be up to date.\n" ); return; } @@ -90,7 +106,7 @@ class OracleUpdater extends DatabaseUpdater { $row = array( 'page_id' => 0, 'page_namespace' => 0, - 'page_title' => ' ', + 'page_title' => ' ', 'page_counter' => 0, 'page_is_redirect' => 0, 'page_is_new' => 0, @@ -119,9 +135,20 @@ class OracleUpdater extends DatabaseUpdater { } /** + * rebuilding of the function that duplicates tables for tests + */ + protected function doRebuildDuplicateFunction() { + $this->output( "Rebuilding duplicate function ... " ); + $this->applyPatch( 'patch_rebuild_dupfunc.sql', false ); + $this->output( "ok\n" ); + } + + /** * Overload: after this action field info table has to be rebuilt + * + * @param $what array */ - public function doUpdates( $what = array( 'core', 'extensions', 'purge' ) ) { + public function doUpdates( $what = array( 'core', 'extensions', 'purge', 'stats' ) ) { parent::doUpdates( $what ); $this->db->query( 'BEGIN fill_wiki_info; END;' ); |