From 8fb7d43c386f31ad2cd965e4d4c8b1cd34a794eb Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Sun, 19 Jan 2020 18:31:10 +0000 Subject: [PATCH] Add missed fields to bulk extract query, docs --- docs/adding-new-fields.md | 1 + maintenance/extract_data/README.txt | 4 ++++ maintenance/extract_data/export_attributes.sql | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/docs/adding-new-fields.md b/docs/adding-new-fields.md index 71ae56b8..1995ad59 100644 --- a/docs/adding-new-fields.md +++ b/docs/adding-new-fields.md @@ -20,6 +20,7 @@ The second section would be required when adding a new category or when changing #### In data extracts 1. Add the field to the select list in the COPY query in `maintenance/extract_data/export_attributes.sql` +2. Add a description of the field to the `README.txt` file ### Adding an attribute which is used to colour the map diff --git a/maintenance/extract_data/README.txt b/maintenance/extract_data/README.txt index ba2c8e70..54db7145 100644 --- a/maintenance/extract_data/README.txt +++ b/maintenance/extract_data/README.txt @@ -41,7 +41,11 @@ This is the main table, containing almost all data collected by Colouring London - `location_postcode`: postcode - `location_latitude`: latitude - `location_longitude`: longitude +- `current_landuse_class`: current land use class +- `current_landuse_group`: current land use group +- `current_landuse_order`: current land use order - `building_attachment_form`: building attachment form +- `date_change_building_use`: year of last building use change - `date_year`: year built - `date_lower`: lower bound on year built - `date_upper`: upper bound on year built diff --git a/maintenance/extract_data/export_attributes.sql b/maintenance/extract_data/export_attributes.sql index c8256e04..87159603 100644 --- a/maintenance/extract_data/export_attributes.sql +++ b/maintenance/extract_data/export_attributes.sql @@ -11,7 +11,11 @@ COPY (SELECT location_postcode, location_latitude, location_longitude, + current_landuse_class, + current_landuse_group, + current_landuse_order, building_attachment_form, + date_change_building_use, date_year, date_lower, date_upper,