Make *id fields unsigned.
function user_update_8008() { db_change_field('authmap', 'uid', 'uid', array( 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'description' => "User's {users}.uid.", )); }