function profile2_regpath_update_7131 in Profile2 Registration Path 7
Same name and namespace in other branches
- 7.2 profile2_regpath.install \profile2_regpath_update_7131()
Add fields.
File
- ./
profile2_regpath.install, line 166 - 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');
}