]> git.openstreetmap.org Git - rails.git/blob - db/migrate/012_create_old_node_tags.rb
migration 013 removes tags from nodes and old nodes tables/ 014 does not do anything atm
[rails.git] / db / migrate / 012_create_old_node_tags.rb
1 class CreateOldNodeTags < ActiveRecord::Migration
2   def self.up
3     create_table "node_tags", myisam_table do |t|
4       t.column "id",      :bigint,  :limit => 64, :default => 0, :null => false
5       t.column "sequence_id", :bigint, :limit => 11
6       t.column "k",       :string
7       t.column "v",       :string
8       t.column "version", :bigint,  :limit => 20
9     end
10
11     add_index "node_tags", ["version"], :name => "node_tags_id_version_idx"
12     add_primary_key "node_tags", ["id", "version", "sequence_id"]
13
14   end
15
16   def self.down
17     drop_table :node_tags
18   end
19 end