Add Survival Source

This commit is contained in:
Mike Simpson 2023-04-06 15:21:59 +01:00
parent d92456cdae
commit 07cb6b4846
3 changed files with 14 additions and 1 deletions

View File

@ -300,6 +300,10 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
edit: true,
verify: true
},
survival_source: {
edit: true,
verify: true
},
likes_total: {
edit: false,
derivedEdit: true,

View File

@ -133,6 +133,14 @@ const LAYER_QUERIES = {
buildings
WHERE
survival_status IS NOT NULL`,
survival_source: `
SELECT
geometry_id,
survival_source
FROM
buildings
WHERE
survival_source IS NOT NULL`,
likes: `
SELECT
geometry_id,

View File

@ -57,7 +57,8 @@ COPY (SELECT
is_domestic,
community_type_worth_keeping_total,
likes_total,
survival_status
survival_status,
survival_source
FROM buildings)
TO '/tmp/building_attributes.csv'
WITH CSV HEADER