Merge pull request #554 from mz8i/fix/missing-extract-fields

Add missed fields to bulk extract query, docs
This commit is contained in:
Maciej Ziarkowski 2020-01-19 18:40:55 +00:00 committed by GitHub
commit d0ab1a641a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,7 @@ The second section would be required when adding a new category or when changing
#### In data extracts #### In data extracts
1. Add the field to the select list in the COPY query in `maintenance/extract_data/export_attributes.sql` 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 ### Adding an attribute which is used to colour the map

View File

@ -41,7 +41,11 @@ This is the main table, containing almost all data collected by Colouring London
- `location_postcode`: postcode - `location_postcode`: postcode
- `location_latitude`: latitude - `location_latitude`: latitude
- `location_longitude`: longitude - `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 - `building_attachment_form`: building attachment form
- `date_change_building_use`: year of last building use change
- `date_year`: year built - `date_year`: year built
- `date_lower`: lower bound on year built - `date_lower`: lower bound on year built
- `date_upper`: upper bound on year built - `date_upper`: upper bound on year built

View File

@ -11,7 +11,11 @@ COPY (SELECT
location_postcode, location_postcode,
location_latitude, location_latitude,
location_longitude, location_longitude,
current_landuse_class,
current_landuse_group,
current_landuse_order,
building_attachment_form, building_attachment_form,
date_change_building_use,
date_year, date_year,
date_lower, date_lower,
date_upper, date_upper,