From 8224cc34eaeca776e5cfe00f533660a78a29ef12 Mon Sep 17 00:00:00 2001 From: marc tobias Date: Tue, 11 Dec 2018 21:34:56 +0100 Subject: [PATCH] documentation: when updating GB postcodes, also run SQL getorcreate_postcode_id [SKIP CI] --- data-sources/gb-postcodes/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data-sources/gb-postcodes/README.md b/data-sources/gb-postcodes/README.md index 241d30cb..5e6cef2d 100644 --- a/data-sources/gb-postcodes/README.md +++ b/data-sources/gb-postcodes/README.md @@ -13,7 +13,9 @@ If you forgot to download the file, or have a new version, you can import it sep 1. Import the downloaded `gb_postcode_data.sql.gz` file. -2. Run `utils/setup.php --calculate-postcodes` from the build directory. This will copy data form the `gb_postcode` table to the `location_postcodes` table. +2. Run the SQL query `SELECT count(getorcreate_postcode_id(postcode)) FROM gb_postcode;`. This will update the search index. + +3. Run `utils/setup.php --calculate-postcodes` from the build directory. This will copy data form the `gb_postcode` table to the `location_postcodes` table. -- 2.45.1