You are here

function profile2_regpath_update_7100 in Profile2 Registration Path 7.2

Same name and namespace in other branches
  1. 7 profile2_regpath.install \profile2_regpath_update_7100()

Implements hook_update_n().

File

./profile2_regpath.install, line 90
Install file for the profile2_regpath module.

Code

function profile2_regpath_update_7100() {

  // Add roles column.
  $roles_spec = array(
    'description' => 'Array of role ids',
    'type' => 'text',
    'size' => 'big',
    'not null' => FALSE,
  );
  db_add_field('profile2_regpath', 'roles', $roles_spec);

  // Change length of path column.
  $path_spec = array(
    'description' => 'Profile-specific registration form path',
    'type' => 'varchar',
    'length' => '2048',
    'not null' => FALSE,
  );
  db_change_field('profile2_regpath', 'path', 'path', $path_spec);
}