Add index-dropping migrations
This commit is contained in:
parent
a66b2c4596
commit
f8e329ce77
10
migrations/002.index-geometries.down.sql
Normal file
10
migrations/002.index-geometries.down.sql
Normal 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;
|
4
migrations/003.index-buildings.down.sql
Normal file
4
migrations/003.index-buildings.down.sql
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- Drop building indexes
|
||||||
|
|
||||||
|
-- UPRN index over buildings
|
||||||
|
DROP INDEX IF EXISTS building_uprn_idx;
|
Loading…
Reference in New Issue
Block a user