[openstreetmap/openstreetmap-website] ActiveRecord::RecordNotUnique error occurs when save . (#1542)

sophia-xll notifications at github.com
Tue May 16 10:38:54 UTC 2017


I describe my operation steps as following:
1. download an a.osm data from osm website.
2. renumber the a.osm data using osmium tools. Here the minimum of node_id is 1. 
3. import the renumbered osm data into postgresql database using osmosis tools.
4. I edit the data within local deployment environment of openstreetmap-website using ID editor.
5. when i save the data, the frontend told me the above error(duplicate key value violates unique constraint).
how can i update the sequences as you said?
thanks for your help. 


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1542#issuecomment-301743354
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170516/330cc31d/attachment.html>


More information about the rails-dev mailing list