You are here

function user_relationships_update_7005 in User Relationships 7

File

./user_relationships.install, line 167
User Relationships API Module installation file.

Code

function user_relationships_update_7005() {
  $fields = array(
    'reverse_name' => array(
      'type' => 'varchar',
      'length' => 255,
      'default' => '',
    ),
    'name_capitalized' => array(
      'type' => 'varchar',
      'length' => 255,
      'default' => '',
    ),
    'plural_name_capitalized' => array(
      'type' => 'varchar',
      'length' => 255,
      'default' => '',
    ),
    'reverse_name_capitalized' => array(
      'type' => 'varchar',
      'length' => 255,
      'default' => '',
    ),
    'reverse_plural_name' => array(
      'type' => 'varchar',
      'length' => 255,
      'default' => '',
    ),
    'reverse_plural_name_capitalized' => array(
      'type' => 'varchar',
      'length' => 255,
      'default' => '',
    ),
  );
  foreach ($fields as $field => $definition) {
    db_add_field('user_relationship_types', $field, $definition);
  }
}