You are here

function sbp_paths_update_6001 in Search by Page 7

Same name and namespace in other branches
  1. 6 sbp_paths.install \sbp_paths_update_6001()

Implements hook_update_N().

Removes uname field, adds role field.

File

./sbp_paths.install, line 118
Install hooks for sbp_paths module

Code

function sbp_paths_update_6001() {
  db_drop_field('sbpp_path', 'uname');
  db_add_field('sbpp_path', 'role', array(
    'description' => 'Role ID used to index this path',
    'type' => 'int',
    'size' => 'big',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => DRUPAL_ANONYMOUS_RID,
  ));
}