X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a3ad9912d53da7df80ac969a03fd8383b6e29f5f..0ca779e5bd2b53e83331640d21945b9fb06b2c8c:/db/migrate/001_create_osm_db.rb diff --git a/db/migrate/001_create_osm_db.rb b/db/migrate/001_create_osm_db.rb index 3a98d6dc1..0117c853e 100644 --- a/db/migrate/001_create_osm_db.rb +++ b/db/migrate/001_create_osm_db.rb @@ -2,9 +2,6 @@ require 'lib/migrate' class CreateOsmDb < ActiveRecord::Migration def self.up - myisam_table = { :id => false, :force => true, :options => "ENGINE=MyIsam DEFAULT CHARSET=utf8" } - innodb_table = { :id => false, :force => true, :options => "ENGINE=InnoDB DEFAULT CHARSET=utf8" } - create_table "current_nodes", innodb_table do |t| t.column "id", :bigint, :limit => 64, :null => false t.column "latitude", :double @@ -113,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" - change_column "gpx_file_tags", "id", :integer, :limit => 20, :null => false, :options => "AUTO_INCREMENT" + change_column "gpx_file_tags", "id", :bigint, :limit => 20, :null => false, :options => "AUTO_INCREMENT" create_table "gpx_files", myisam_table do |t| t.column "id", :bigint, :limit => 64, :null => false