cartodb-4.42/db/migrate/20150414093434_add_more_dashboard_indices.rb
2024-04-06 05:25:13 +00:00

22 lines
532 B
Ruby

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