Mercurial > gemma
view 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 |
line wrap: on
line source
INSERT INTO survey_types (survey_type) VALUES ('marking'); CREATE TABLE waterway.sounding_results_marking_points ( sounding_result_id int NOT NULL REFERENCES waterway.sounding_results ON DELETE CASCADE, height numeric NOT NULL, points geography(MULTIPOINT, 4326) NOT NULL, PRIMARY KEY (sounding_result_id, height) ); GRANT INSERT, UPDATE, DELETE ON waterway.sounding_results_marking_points TO waterway_admin; GRANT SELECT ON waterway.sounding_results_marking_points TO waterway_user;