You are here

function search_api_stats_update_7102 in Search API Stats 7

Update 7001: Add language field in table:search_api_stats. See https://drupal.org/node/1930930

File

./search_api_stats.install, line 146
Install, update and uninstall functions for the search_api_stats module.

Code

function search_api_stats_update_7102() {
  if (!db_field_exists('search_api_stats', 'language')) {
    $lang = array(
      'description' => 'The site languages of keywords when search was executed.',
      'type' => 'varchar',
      'length' => 12,
      'not null' => TRUE,
      'default' => '',
    );
    db_add_field('search_api_stats', 'language', $lang);
    return t('Added language field in search_api_stats table.');
  }
}