X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6319d81c0793e8a2c57fd450f88d91f16d7b409f..c5f33db61e8ac24e578ae431f95a2566255fbf27:/db/migrate/012_create_old_node_tags.rb diff --git a/db/migrate/012_create_old_node_tags.rb b/db/migrate/012_create_old_node_tags.rb new file mode 100644 index 000000000..329636d45 --- /dev/null +++ b/db/migrate/012_create_old_node_tags.rb @@ -0,0 +1,19 @@ +class CreateOldNodeTags < ActiveRecord::Migration + def self.up + create_table "node_tags", myisam_table do |t| + t.column "id", :bigint, :limit => 64, :default => 0, :null => false + t.column "sequence_id", :bigint, :limit => 11 + t.column "k", :string + t.column "v", :string + t.column "version", :bigint, :limit => 20 + end + + add_index "node_tags", ["version"], :name => "node_tags_id_version_idx" + add_primary_key "node_tags", ["id", "version", "sequence_id"] + + end + + def self.down + drop_table :node_tags + end +end