25 $status =
Status::newGood();
27 $module = DatabaseSqlite::getFulltextSearchModule();
28 $searchIndexSql = (string)$db->newSelectQueryBuilder()
30 ->from(
'sqlite_master' )
31 ->where( [
'tbl_name' => $db->tableName(
'searchindex',
'raw' ) ] )
32 ->caller( __METHOD__ )->fetchField();
33 $fts3tTable = ( stristr( $searchIndexSql,
'fts' ) !== false );
35 if ( $fts3tTable && !$module ) {
36 $status->warning(
'config-sqlite-fts3-downgrade' );
37 $status->merge( $this->
applySourceFile( $db,
'searchindex-no-fts.sql' ) );
38 } elseif ( !$fts3tTable && $module ==
'FTS3' ) {
39 $status->merge( $this->
applySourceFile( $db,
'searchindex-fts3.sql' ) );
const CONN_CREATE_TABLES
A connection with a role suitable for creating tables.