function user_relationships_api_update_6102 in User Relationships 6
Implementation of hook_update_N(). Update 6102 adds the column is_reciprocal to the {user_relationship_types} table
File
- user_relationships_api/
user_relationships_api.install, line 114 - User Relationships API Module installation file.
Code
function user_relationships_api_update_6102() {
$new_fields = array(
'is_reciprocal' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'size' => 'tiny',
),
);
$ret = array();
foreach ($new_fields as $field => $spec) {
db_add_field($ret, 'user_relationship_types', $field, $spec);
}
return $ret;
}