You are here

function search_by_page_update_6001 in Search by Page 6

Removes uid field, adds role field.

File

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

Code

function search_by_page_update_6001() {
  $ret = array();
  db_drop_field($ret, 'sbp_path', 'uid');
  db_add_field($ret, 'sbp_path', 'role', array(
    'description' => t('Role ID used to index this path'),
    'type' => 'int',
    'size' => 'big',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => DRUPAL_ANONYMOUS_RID,
  ));
  return $ret;
}