Mercurial > gemma
comparison schema/updates/1460/01.markings.sql @ 5402:f5063fa7f666 marking-single-beam
Add schema change for marking vessel single beam scans.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 06 Jul 2021 00:30:39 +0200 |
parents | |
children | 2d294ad81241 |
comparison
equal
deleted
inserted
replaced
5398:dcc692a333c0 | 5402:f5063fa7f666 |
---|---|
1 INSERT INTO survey_types (survey_type) VALUES ('marking'); | |
2 | |
3 CREATE TABLE waterway.sounding_results_marking_points ( | |
4 sounding_result_id int NOT NULL REFERENCES waterway.sounding_results | |
5 ON DELETE CASCADE, | |
6 height numeric NOT NULL, | |
7 points geography(MULTIPOINT, 4326) NOT NULL, | |
8 PRIMARY KEY (sounding_result_id, height) | |
9 ); | |
10 | |
11 GRANT INSERT, UPDATE, DELETE ON waterway.sounding_results_marking_points | |
12 TO waterway_admin; | |
13 | |
14 GRANT SELECT ON waterway.sounding_results_marking_points | |
15 TO waterway_user; |