Mercurial > gemma
comparison schema/updates/1204/01.create-iso-areas.sql @ 4566:2c49a293f275 iso-areas
Fixed access problem for waterway_admins and sys_admins.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 03 Oct 2019 22:27:11 +0200 |
parents | |
children | 26e9846ed69f |
comparison
equal
deleted
inserted
replaced
4565:25898dabd4af | 4566:2c49a293f275 |
---|---|
1 CREATE TABLE waterway.sounding_results_iso_areas ( | |
2 sounding_result_id int NOT NULL REFERENCES waterway.sounding_results | |
3 ON DELETE CASCADE, | |
4 height numeric NOT NULL, | |
5 areas geography(MULTIPOLYGON, 4326) NOT NULL, | |
6 -- TODO: generate valid simple features and add constraint: | |
7 -- CHECK(ST_IsSimple(CAST(areas AS geometry))), | |
8 PRIMARY KEY (sounding_result_id, height) | |
9 ); | |
10 | |
11 GRANT INSERT, UPDATE, DELETE ON waterway.sounding_results_iso_areas | |
12 TO waterway_admin; | |
13 | |
14 GRANT SELECT ON waterway.sounding_results_iso_areas | |
15 TO waterway_user; | |
16 |