]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/002_cleanup_osm_db.rb
setting lon2 correctly. Was displaying one of the bbox numbers wrong
[rails.git] / db / migrate / 002_cleanup_osm_db.rb
index f283602acad081f56d50c9e8bffafc419f43ad52..b13a92099d29dde64d2a3c1525465d5ab83e24a3 100644 (file)
@@ -39,7 +39,9 @@ class CleanupOsmDb < ActiveRecord::Migration
     add_index "friends", ["user_id"], :name => "friends_user_id_idx"
 
     remove_index "gps_points", :name => "points_uid_idx"
     add_index "friends", ["user_id"], :name => "friends_user_id_idx"
 
     remove_index "gps_points", :name => "points_uid_idx"
+    remove_index "gps_points", :name => "points_idx"
     remove_column "gps_points", "user_id"
     remove_column "gps_points", "user_id"
+    add_index "gps_points", ["latitude", "longitude"], :name => "points_idx"
     change_column "gps_points", "trackid", :integer, :null => false
     change_column "gps_points", "latitude", :integer, :null => false
     change_column "gps_points", "longitude", :integer, :null => false
     change_column "gps_points", "trackid", :integer, :null => false
     change_column "gps_points", "latitude", :integer, :null => false
     change_column "gps_points", "longitude", :integer, :null => false