You are here

function search_by_page_update_7004 in Search by Page 7

Increase size of page_data field.

File

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

Code

function search_by_page_update_7004() {

  // Lengthen page_data field to medium.
  db_change_field('sbp_path', 'page_data', 'page_data', array(
    'description' => 'Page contents as of last index',
    'type' => 'text',
    'size' => 'medium',
    'not null' => FALSE,
  ));

  // Mark everything as needing indexing.
  db_update('sbp_path')
    ->fields(array(
    'last_index_time' => 0,
  ))
    ->execute();

  // Tell the user they need to run cron to reindex.
  return t('Search by Page has reset its search index. Run cron until everything is indexed.');
}