You are here

function profile2_regpath_update_7131 in Profile2 Registration Path 7.2

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

Implements hook_update_n().

Add fields

File

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

Code

function profile2_regpath_update_7131() {
  $spec = array(
    'description' => 'The {profile_type}.type of this profile.',
    'type' => 'varchar',
    'length' => '255',
    'not null' => TRUE,
    'default' => '',
  );
  db_add_field('profile2_regpath', 'profile_type', $spec);
  db_add_index('profile2_regpath', 'profile_type', array(
    'profile_type',
  ));
  db_drop_index('profile2_regpath', 'profile_id');
}