From 1e6a00c573fa854f4ae4d5fe368f00c44f53fe5d Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 12 Oct 2016 15:00:33 -0400 Subject: [PATCH] [fix] place in UK that was parented by a postal_code --- scripts/geodata/geoplanet/__init__.py | 0 scripts/geodata/geoplanet/cleanup_geoplanet_db.sql | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 scripts/geodata/geoplanet/__init__.py diff --git a/scripts/geodata/geoplanet/__init__.py b/scripts/geodata/geoplanet/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/scripts/geodata/geoplanet/cleanup_geoplanet_db.sql b/scripts/geodata/geoplanet/cleanup_geoplanet_db.sql index 113b0e81..c4fa8424 100644 --- a/scripts/geodata/geoplanet/cleanup_geoplanet_db.sql +++ b/scripts/geodata/geoplanet/cleanup_geoplanet_db.sql @@ -172,6 +172,12 @@ -- except for boroughs of London and parent_id != 44418; + -- One place in the UK (Garrison) is parented by a postal_code + update places + set parent_id = 20078335 -- Fermanagh + where parent_id = 26353948; -- BT93 4 + + -- Canada -- Alberta