]> git.openstreetmap.org Git - rails.git/commitdiff
Fixing the migration so that it will better match the live databetter.
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Wed, 5 Nov 2008 18:42:38 +0000 (18:42 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Wed, 5 Nov 2008 18:42:38 +0000 (18:42 +0000)
db/migrate/001_create_osm_db.rb

index 0117c853edb74522c4f1fc296c80c9cc2acac594..689ca3c209986638319ba6a2b26d6a5be2e23f30 100644 (file)
@@ -110,7 +110,7 @@ class CreateOsmDb < ActiveRecord::Migration
     add_primary_key "gpx_file_tags", ["id"]
     add_index "gpx_file_tags", ["gpx_id"], :name => "gpx_file_tags_gpxid_idx"
 
     add_primary_key "gpx_file_tags", ["id"]
     add_index "gpx_file_tags", ["gpx_id"], :name => "gpx_file_tags_gpxid_idx"
 
-    change_column "gpx_file_tags", "id", :bigint, :limit => 20, :null => false, :options => "AUTO_INCREMENT"
+    change_column "gpx_file_tags", "id", :integer, :null => false, :options => "AUTO_INCREMENT"
 
     create_table "gpx_files", myisam_table do |t|
       t.column "id",          :bigint,   :limit => 64,                   :null => false
 
     create_table "gpx_files", myisam_table do |t|
       t.column "id",          :bigint,   :limit => 64,                   :null => false