Add index-dropping migrations

This commit is contained in:
Tom Russell 2018-09-27 21:38:37 +01:00
parent a66b2c4596
commit f8e329ce77
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
-- Drop geometric indexes
-- Spatial index over geometries
DROP INDEX IF EXISTS geometries_idx;
-- Source ID index over geometries
DROP INDEX IF EXISTS geometries_source_idx;
-- Index over building geometry_id (expect to look up building by geometry_id for map tiles)
DROP INDEX IF EXISTS building_geometry_idx;

View File

@ -0,0 +1,4 @@
-- Drop building indexes
-- UPRN index over buildings
DROP INDEX IF EXISTS building_uprn_idx;