cartodb-4.42/db/migrate/20150128161955_add_indexes_to_layers_tables.rb

24 lines
438 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
Sequel.migration do
up do
SequelRails.connection.run(%Q{
CREATE INDEX layers_maps_map_id_idx ON layers_maps (map_id)
})
SequelRails.connection.run(%Q{
CREATE INDEX layers_kind_idx ON layers (kind)
})
end
down do
SequelRails.connection.run(%Q{
DROP INDEX IF EXISTS layers_maps_map_id_idx
})
SequelRails.connection.run(%Q{
DROP INDEX IF EXISTS layers_kind_idx
})
end
end