From 9db190c7e736ec8d063187d4241b59feaf7dc2d1 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 22 Jun 2011 11:28:20 +0200 Subject: update to MediaWiki 1.17.0 --- includes/installer/SqliteUpdater.php | 84 ++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 includes/installer/SqliteUpdater.php (limited to 'includes/installer/SqliteUpdater.php') diff --git a/includes/installer/SqliteUpdater.php b/includes/installer/SqliteUpdater.php new file mode 100644 index 00000000..d1a6c20b --- /dev/null +++ b/includes/installer/SqliteUpdater.php @@ -0,0 +1,84 @@ +updateRowExists( 'initial_indexes' ) || $this->db->indexExists( 'user', 'user_name' ) ) { + $this->output( "...have initial indexes\n" ); + return; + } + $this->output( "Adding initial indexes..." ); + $this->applyPatch( 'initial-indexes.sql' ); + $this->output( "done\n" ); + } + + protected function sqliteSetupSearchindex() { + $module = DatabaseSqlite::getFulltextSearchModule(); + $fts3tTable = $this->updateRowExists( 'fts3' ); + if ( $fts3tTable && !$module ) { + $this->output( '...PHP is missing FTS3 support, downgrading tables...' ); + $this->applyPatch( 'searchindex-no-fts.sql' ); + $this->output( "done\n" ); + } elseif ( !$fts3tTable && $module == 'FTS3' ) { + $this->output( '...adding FTS3 search capabilities...' ); + $this->applyPatch( 'searchindex-fts3.sql' ); + $this->output( "done\n" ); + } else { + $this->output( "...fulltext search table appears to be in order.\n" ); + } + } +} -- cgit v1.2.3-54-g00ecf