Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Change "uid" to "id". #116

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Change "uid" to "id". #116

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: immanuel.scholz[at]gmx.de
[Submitted to the original trac issue database at 1.23am, Thursday, 29th December 2005]

"uid" is commonly used as "universal identifier" or "unique identifier". Both spellings means, that the id is unique among a great set of data, at least the whole dataset in mention.

This is not true for the osm id, which is not unique among different data types (nor it is among one type when history is taken into account).

It is confusing to name things in an unnatural way. Please change the name to the more restrictive "id" or something else.

Imi.

@openstreetmap-trac
Copy link
Author

Author: rjmunro[at]arjam.net
[Added to the original trac issue at 10.17am, Sunday, 13th May 2007]

As far as I can see, in the rails port uid is only used to mean user id, except for 3 indexes on the MySQL tables.

In: source:sites/rails_port/db/migrate/001_create_osm_db.rb

  • add_index "gps_points", !["user_id"], :name => "points_uid_idx"
  • add_index "nodes", !["id"], :name => "nodes_uid_idx"
  • add_index "segments", !["id"], :name => "street_segment_uid_idx"

These indexes should be renamed. After that, I think the bug can be closed.

@openstreetmap-trac
Copy link
Author

Author: Andy Allan
[Added to the original trac issue at 3.12pm, Wednesday, 12th May 2010]

As per the previous comment three years ago, this is effectively fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant