end
add_index "current_way_tags", ["id"], :name => "current_way_tags_id_idx"
- execute "CREATE FULLTEXT INDEX `current_way_tags_v_idx` ON `current_way_tags` (`v`)"
+ add_fulltext_index "current_way_tags", "v"
create_table "current_ways", myisam_table do |t|
t.column "id", :bigint_pk_64, :null => false
end
add_index "current_relation_tags", ["id"], :name => "current_relation_tags_id_idx"
- execute "CREATE FULLTEXT INDEX `current_relation_tags_v_idx` ON `current_relation_tags` (`v`)"
+ add_fulltext_index "current_relation_tags", "v"
create_table "current_relations", innodb_table do |t|
t.column "id", :bigint_pk_64, :null => false
def change_engine (table_name, engine)
execute "ALTER TABLE #{table_name} ENGINE = #{engine}"
end
+
+ def add_fulltext_index (table_name, column)
+ execute "CREATE FULLTEXT INDEX `#{table_name}_#{column}_idx` ON `#{table_name}` (`#{column}`)"
+ end
end
end
end