Index: trunk/phase3/tests/phpunit/MediaWikiTestCase.php |
— | — | @@ -200,6 +200,15 @@ |
201 | 201 | |
202 | 202 | $tables = $this->db->listTables( $wgDBprefix, __METHOD__ ); |
203 | 203 | $tables = array_map( array( __CLASS__, 'unprefixTable' ), $tables ); |
| 204 | + |
| 205 | + if ( $this->db->getType() == 'sqlite' ) { |
| 206 | + $tables = array_flip( $tables ); |
| 207 | + // these are subtables of searchindex and don't need to be duped/dropped separately |
| 208 | + unset( $tables['searchindex_content'] ); |
| 209 | + unset( $tables['searchindex_segdir'] ); |
| 210 | + unset( $tables['searchindex_segments'] ); |
| 211 | + $tables = array_flip( $tables ); |
| 212 | + } |
204 | 213 | return $tables; |
205 | 214 | |
206 | 215 | } |