You are here

function search_api_autocomplete_update_7104 in Search API Autocomplete 7

Fix the {search_api_autocomplete_search}.suggester_id field, where necessary.

File

./search_api_autocomplete.install, line 193
Install, update and uninstall functions for the Search API autocomplete module.

Code

function search_api_autocomplete_update_7104() {
  $or = db_or();
  $or
    ->condition('suggester_id', '');
  $or
    ->isNull('suggester_id');
  db_update('search_api_autocomplete_search')
    ->fields(array(
    'suggester_id' => 'server',
  ))
    ->condition($or)
    ->execute();
}