You are here

function search_by_page_update_6003 in Search by Page 6

Implementation of hook_update_N().

Adds fields to sbp_path table and cron setting default.

File

./search_by_page.install, line 283
Install hooks for search_by_page module

Code

function search_by_page_update_6003() {
  $ret = array();
  db_add_field($ret, 'sbp_path', 'min_time', array(
    'description' => t('Minimum reindex time'),
    'type' => 'int',
    'size' => 'big',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  ));
  db_add_field($ret, 'sbp_path', 'max_time', array(
    'description' => t('Maximum reindex time'),
    'type' => 'int',
    'size' => 'big',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  ));
  variable_set('sbp_cron_limit', variable_get('search_cron_limit', 100));
  return $ret;
}