X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/91374368faffee13ded82b9718078d5593e32fed..051f20e2771a44ddc5ed8d730f357cc323532233:/db/migrate/019_move_to_innodb.rb?ds=inline diff --git a/db/migrate/019_move_to_innodb.rb b/db/migrate/019_move_to_innodb.rb index 2e9f4adaa..da0488ca5 100644 --- a/db/migrate/019_move_to_innodb.rb +++ b/db/migrate/019_move_to_innodb.rb @@ -6,8 +6,8 @@ class MoveToInnodb < ActiveRecord::Migration @@ver_tbl = ['nodes', 'ways', 'relations'] def self.up - execute 'DROP INDEX current_way_tags_v_idx ON current_way_tags' - execute 'DROP INDEX current_relation_tags_v_idx ON current_relation_tags' + remove_index :current_way_tags, :name=> :current_way_tags_v_idx + remove_index :current_relation_tags, :name=> :current_relation_tags_v_idx @@ver_tbl.each { |tbl| change_column tbl, "version", :bigint, :limit => 20, :null => false