Mercurial > gemma
diff schema/gemma.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 | 23a30ba08243 |
children | 2d294ad81241 |
line wrap: on
line diff
--- a/schema/gemma.sql Mon Jul 05 08:31:46 2021 +0200 +++ b/schema/gemma.sql Tue Jul 06 00:30:39 2021 +0200 @@ -353,7 +353,7 @@ survey_type varchar PRIMARY KEY ); -INSERT INTO survey_types (survey_type) VALUES ('single'), ('multi'); +INSERT INTO survey_types (survey_type) VALUES ('single'), ('multi'), ('marking'); CREATE TABLE coverage_types ( coverage_type varchar PRIMARY KEY @@ -828,6 +828,15 @@ -- CHECK(ST_IsSimple(CAST(areas AS geometry))), PRIMARY KEY (sounding_result_id, height) ) + + CREATE TABLE sounding_results_marking_points ( + sounding_result_id int NOT NULL REFERENCES sounding_results + ON DELETE CASCADE, + height numeric NOT NULL, + points geography(MULTIPOINT, 4326) NOT NULL, + PRIMARY KEY (sounding_result_id, height) + ) + -- -- Fairway availability --