19 $status =
Status::newGood();
21 $module = DatabaseSqlite::getFulltextSearchModule();
22 $searchIndexSql = (string)$db->newSelectQueryBuilder()
24 ->from(
'sqlite_master' )
25 ->where( [
'tbl_name' => $db->tableName(
'searchindex',
'raw' ) ] )
26 ->caller( __METHOD__ )->fetchField();
27 $fts3tTable = ( stristr( $searchIndexSql,
'fts' ) !== false );
29 if ( $fts3tTable && !$module ) {
30 $status->warning(
'config-sqlite-fts3-downgrade' );
32 } elseif ( !$fts3tTable && $module ==
'FTS3' ) {
const CONN_CREATE_TABLES
A connection with a role suitable for creating tables.