You are here

function search_by_page_update_7002 in Search by Page 7

Add fields to sbp_path table and cron setting default.

File

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

Code

function search_by_page_update_7002() {
  db_add_field('sbp_path', 'min_time', array(
    'description' => t('Minimum reindex time'),
    'type' => 'int',
    'size' => 'big',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 1,
  ));
  db_add_field('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));
}