From 2314acef1b557aec6baaab02b93afc5b3c68e491 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 11 Oct 2016 02:33:27 -0400 Subject: [PATCH] =?UTF-8?q?[geoplanet]=20bypassing=20Qu=C3=A9bec=20as=20a?= =?UTF-8?q?=20county=20(just=20city=20and=20state)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/geodata/geoplanet/cleanup_geoplanet_db.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/geodata/geoplanet/cleanup_geoplanet_db.sql b/scripts/geodata/geoplanet/cleanup_geoplanet_db.sql index 7ffdec0e..113b0e81 100644 --- a/scripts/geodata/geoplanet/cleanup_geoplanet_db.sql +++ b/scripts/geodata/geoplanet/cleanup_geoplanet_db.sql @@ -214,6 +214,20 @@ set county_id = 0 where state_id = 2344920; + -- Québec + -- listed as both county and state + update postal_codes + set parent_id = 2344924 + where parent_id = 29375121; + + update places + set parent_id = 2344924 + where parent_id = 29375121; + + update admins + set county_id = 0 + where county_id = 29375121; + -- Saskatchewan -- listed as both county and state update places