You are here

function search_api_multi_update_7101 in Search API Multi-Index Searches 7

Change the base table of multi-index views.

File

./search_api_multi.install, line 11
Install, update and uninstall functions for the Multi-Index Searches module.

Code

function search_api_multi_update_7101() {
  if (db_table_exists('views_view')) {
    db_update('views_view')
      ->fields(array(
      'base_table' => 'search_api_multi',
    ))
      ->condition('base_table', 'search_api_multi_%', 'LIKE')
      ->execute();
  }
}