From 4a8b8a06a54aee2e61b45a92bbfadd6fdd639def Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 18 Dec 2007 15:14:23 +0000 Subject: [PATCH] Only create 'searchindex' table for parser tests if DB is MySQL. Per bug 585. --- RELEASE-NOTES | 1 + maintenance/parserTests.inc | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 77b54ea67d..f578a9eddd 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -248,6 +248,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN user-customized ones (like Common.css, Common.js) * (bug 12283) Special:Newpages forgets parameters * (bug 12031) All namespaces doesn't work in Special:Newpages +* (bug 585) Only create searchindex replica table for parser tests if db is MySQL == Parser changes in 1.12 == diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 10e46891c7..bfb226bca8 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -425,14 +425,18 @@ class ParserTest { * Some of these probably aren't necessary. */ private function listTables() { + global $wgDBtype; $tables = array('user', 'page', 'page_restrictions', 'protected_titles', 'revision', 'text', 'pagelinks', 'imagelinks', 'categorylinks', 'templatelinks', 'externallinks', 'langlinks', 'site_stats', 'hitcounter', 'ipblocks', 'image', 'oldimage', - 'recentchanges', 'watchlist', 'math', 'searchindex', 'interwiki', + 'recentchanges', 'watchlist', 'math', 'interwiki', 'querycache', 'objectcache', 'job', 'redirect', 'querycachetwo', 'archive', 'user_groups' ); + + if ($wgDBtype === 'mysql') + array_push( $tables, 'searchindex' ); // Allow extensions to add to the list of tables to duplicate; // may be necessary if they hook into page save or other code -- 2.20.1