From a23deeb3a991c9fd71758bb30e26befc22ffc6fa Mon Sep 17 00:00:00 2001
From: Cecilia Nievas <cnievas@gfz-potsdam.de>
Date: Mon, 7 Feb 2022 12:11:11 +0100
Subject: [PATCH 1/2] Added geometry field to data_units table

---
 migrations/00009_add-geometry-field-to-data-units.sql | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 migrations/00009_add-geometry-field-to-data-units.sql

diff --git a/migrations/00009_add-geometry-field-to-data-units.sql b/migrations/00009_add-geometry-field-to-data-units.sql
new file mode 100644
index 0000000..7d2e126
--- /dev/null
+++ b/migrations/00009_add-geometry-field-to-data-units.sql
@@ -0,0 +1,3 @@
+CREATE EXTENSION postgis;
+
+ALTER TABLE public.data_units ADD COLUMN geometry GEOMETRY;
-- 
GitLab


From 485a95c4143415974fe02fa341956ff213e930d7 Mon Sep 17 00:00:00 2001
From: Cecilia Nievas <cnievas@gfz-potsdam.de>
Date: Mon, 7 Feb 2022 15:41:07 +0100
Subject: [PATCH 2/2] Updated README to include new field

---
 README.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/README.md b/README.md
index c1bf7d2..99692c2 100644
--- a/README.md
+++ b/README.md
@@ -50,6 +50,7 @@ Consequently, the primary key of this table consists of three fields: `data_unit
 | dwellings_total                   | float         | Total number of dwellings as per the aggregated exposure model.           |
 | people_census                     | float         | Total number of census people as per the aggregated exposure model.       |
 | cost_total                        | float         | Total replacement cost of buildings as per the aggregated exposure model. |
+| geometry                          | geometry      | Geometry of the data unit.                                                |
 
 #### `data_unit_tiles` - Information about data-unit tiles
 
-- 
GitLab