Index: trunk/phase3/maintenance/rebuildtextindex.php |
— | — | @@ -48,9 +48,18 @@ |
49 | 49 | } |
50 | 50 | |
51 | 51 | $this->db = wfGetDB( DB_MASTER ); |
| 52 | + if ( $this->db->getType() == 'sqlite' ) { |
| 53 | + if ( !$this->db->getFulltextSearchModule() ) { |
| 54 | + $this->error( "Your version of SQLite module for PHP doesn't support full-text search (FTS3).\n" ); |
| 55 | + } |
| 56 | + if ( !$this->db->checkForEnabledSearch() ) { |
| 57 | + $this->error( "Your database schema is not configured for full-text search support. Run update.php.\n" ); |
| 58 | + } |
| 59 | + } |
| 60 | + |
52 | 61 | $wgTitle = Title::newFromText( "Rebuild text index script" ); |
53 | 62 | |
54 | | - if ( $wgDBtype == 'mysql' ) { |
| 63 | + if ( $this->db->getType() == 'mysql' ) { |
55 | 64 | $this->dropMysqlTextIndex(); |
56 | 65 | $this->populateSearchIndex(); |
57 | 66 | $this->createMysqlTextIndex(); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -186,6 +186,7 @@ |
187 | 187 | * Use hreflang to specify canonical and alternate links, search engine friendly |
188 | 188 | when a wiki has multiple variant languages. |
189 | 189 | * (bug 19593) Specifying --server in now works for all maintenance scripts |
| 190 | +* Now rebuildtextindex.php warns if SQLite doesn't support full-text search. |
190 | 191 | |
191 | 192 | === Bug fixes in 1.17 === |
192 | 193 | * (bug 17560) Half-broken deletion moved image files to deletion archive |