]> git.openstreetmap.org Git - rails.git/blob - db/migrate/015_create_temp_old_nodes.rb
Set a transitionEffect of resize on the OSM layers, ready for OL 2.6.
[rails.git] / db / migrate / 015_create_temp_old_nodes.rb
1 class CreateTempOldNodes < ActiveRecord::Migration
2   def self.up
3     create_table "temp_nodes", myisam_table do |t|
4       t.column "id",        :bigint,  :limit => 64, :null => false
5       t.column "version",   :bigint,  :limit => 20, :null => false
6       t.column "latitude",  :double,                :null => false
7       t.column "longitude", :double,                :null => false
8       t.column "user_id",   :bigint,  :limit => 20, :null => false
9       t.column "visible",   :boolean,               :null => false
10       t.column "timestamp", :datetime,              :null => false
11       t.column "tile",      :integer,               :null => false
12     end
13
14     add_primary_key "temp_nodes", ["id", "version"] 
15     add_index "temp_nodes", ["timestamp"], :name => "temp_nodes_timestamp_idx"
16     add_index "temp_nodes", ["tile"], :name => "temp_nodes_tile_idx"
17
18     change_column "temp_nodes", "version", :bigint, :limit => 20, :null => false, :options => "AUTO_INCREMENT"
19   end
20
21   def self.down
22     drop_table :temp_nodes
23   end
24 end