? user_relationships_api/.DS_Store Index: user_relationships_api/user_relationships_api.api.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/user_relationships/user_relationships_api/Attic/user_relationships_api.api.inc,v retrieving revision 1.1.2.9 diff -r1.1.2.9 user_relationships_api.api.inc 202,204d201 < else { < $relationship->rid = db_result(db_query("SELECT MAX(rid) FROM {user_relationships}")) + 1; < } Index: user_relationships_api/user_relationships_api.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/user_relationships/user_relationships_api/Attic/user_relationships_api.install,v retrieving revision 1.1.2.5 diff -r1.1.2.5 user_relationships_api.install 4d3 < 7c6,10 < * User Relationships Schema --- > * User Relationships API Module installation file. > */ > > /** > * Implementation of hook_schema(). 12c15 < 'rid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), --- > 'rid' => array('type' => 'serial', 'not null' => TRUE), 20a24 > 'primary key' => array('rid'), 25d28 < 'rid' => array('rid'), 51c54 < * Install --- > * Implementation of hook_install(). 58c61 < * Uninstall --- > * Implementation of hook_uninstall(). 62a66,76 > > /** > * Implementation of hook_update_N(). > * Update 6100 changes the {user_relationships} rid column from an INT to a SERIAL type. > */ > function user_relationships_api_update_6100() { > $ret = array(); > db_drop_index($ret, 'user_relationships', 'rid'); > db_change_field($ret, 'user_relationships', 'rid', 'rid', array('type' => 'serial', 'not null' => TRUE), array('indexes' => array('rid' => array('rid')))); > return $ret; > }