Add missing tables to listTables()
authorPlatonides <platonides@users.mediawiki.org>
Thu, 12 Aug 2010 10:34:20 +0000 (10:34 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Thu, 12 Aug 2010 10:34:20 +0000 (10:34 +0000)
Strangely this didn't break mysql like it did for sqlite.

maintenance/parserTests.inc

index 771e3f7..15c23f9 100644 (file)
@@ -596,16 +596,16 @@ class ParserTest {
         */
        private function listTables() {
                global $wgDBtype;
-               $tables = array( 'user', 'page', 'page_restrictions',
+               $tables = array( 'user', 'user_properties', 'page', 'page_restrictions',
                        'protected_titles', 'revision', 'text', 'pagelinks', 'imagelinks',
                        'categorylinks', 'templatelinks', 'externallinks', 'langlinks', 'iwlinks',
                        'site_stats', 'hitcounter',     'ipblocks', 'image', 'oldimage',
-                       'recentchanges', 'watchlist', 'math', 'interwiki',
+                       'recentchanges', 'watchlist', 'math', 'interwiki', 'logging',
                        'querycache', 'objectcache', 'job', 'l10n_cache', 'redirect', 'querycachetwo',
                        'archive', 'user_groups', 'page_props', 'category',
                );
 
-               if ( $wgDBtype === 'mysql' )
+               if ( in_array( $wgDBtype, array( 'mysql', 'sqlite' ) ) )
                        array_push( $tables, 'searchindex' );
 
                // Allow extensions to add to the list of tables to duplicate;