X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a63b22a9af59e9b82239a1abcda6106bc835c681..95e8c63c2a3aee63c3eb21d7b70343ff1d17f652:/db/migrate/053_add_map_bug_tables.rb diff --git a/db/migrate/053_add_map_bug_tables.rb b/db/migrate/053_add_map_bug_tables.rb index b3a1acee6..6851a20b4 100644 --- a/db/migrate/053_add_map_bug_tables.rb +++ b/db/migrate/053_add_map_bug_tables.rb @@ -5,7 +5,6 @@ class AddMapBugTables < ActiveRecord::Migration create_enumeration :map_bug_status_enum, ["open", "closed", "hidden"] create_table :map_bugs do |t| - t.column :id, :bigint, :null => false t.integer :latitude, :null => false t.integer :longitude, :null => false t.column :tile, :bigint, :null => false @@ -16,6 +15,8 @@ class AddMapBugTables < ActiveRecord::Migration t.column :status, :map_bug_status_enum, :null => false end + change_column :map_bugs, :id, :bigint + add_index :map_bugs, [:tile, :status], :name => "map_bugs_tile_idx" add_index :map_bugs, [:last_changed], :name => "map_bugs_changed_idx" add_index :map_bugs, [:date_created], :name => "map_bugs_created_idx"