You are here

function search_autocomplete_update_6401 in Search Autocomplete 6.4

Add a translite optionnal option.

File

./search_autocomplete.install, line 234
This file is used to install/update/delete the module tables in database

Code

function search_autocomplete_update_6401(&$sandbox) {
  $ret = array();
  $translite_field = array(
    'description' => 'Define if suggestion searches should be translited',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 1,
  );
  db_add_field($ret, 'search_autocomplete_forms', 'translite', $translite_field);
  $no_results_field = array(
    'description' => 'Maximum number of suggestions',
    'type' => 'varchar',
    'length' => 50,
    'not null' => FALSE,
    'default' => '-- no results --',
  );
  db_add_field($ret, 'search_autocomplete_forms', 'no_results', $no_results_field);
  return t('Update has:<br/>- add a column "translite" in the search autocomplete database.<br/>- add a column "no_results" in the search autocomplete database.<br/> Done with success.');
}