- function fulltextSearchSupported() {
- /** @var DatabaseSqlite $dbr */
- $dbr = $this->lb->getConnection( DB_REPLICA );
+ private function fulltextSearchSupported() {
+ $dbr = $this->lb->getMaintenanceConnectionRef( DB_REPLICA );
+ $sql = (string)$dbr->selectField(
+ $dbr->addIdentifierQuotes( 'sqlite_master' ),
+ 'sql',
+ [ 'tbl_name' => $dbr->tableName( 'searchindex', 'raw' ) ],
+ __METHOD__
+ );