cartodb-4.42/db/migrate/20150414093434_add_more_dashboard_indices.rb

22 lines
532 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 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