cartodb/db/migrate/20150414093434_add_more_dashboard_indices.rb

22 lines
532 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
Sequel.migration do
up do
SequelRails.connection.run(%Q{
CREATE INDEX external_sources_visualization_id_idx ON external_sources (visualization_id)
})
SequelRails.connection.run(%Q{
CREATE INDEX visualizations_permission_id_idx ON visualizations (permission_id)
})
end
down do
SequelRails.connection.run(%Q{
DROP INDEX IF EXISTS external_sources_visualization_id_idx
})
SequelRails.connection.run(%Q{
DROP INDEX IF EXISTS visualizations_permission_id_idx
})
end
end