Mercurial > gemma
view schema/updates/1441/01.extend_sounding_result_view.sql @ 5307:4ba3fda13c50 zpg-exception
Fixed typo in migration script.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 28 May 2021 11:17:12 +0200 |
parents | 6b0274693b48 |
children | 72d3b8321ed0 |
line wrap: on
line source
-- Could have used an UPDATE for this but this way its more C&P from -- default_sysconfig.sql DELETE FROM sys_admin.published_services WHERE schema = 'waterway' AND name = 'sounding_results_areas_geoserver'; INSERT INTO sys_admin.published_services ( schema, name, srid, key_column, view_def ) VALUES ('waterway', 'sounding_results_areas_geoserver', 4326, NULL, $$ SELECT bottleneck_id, to_char(date_info, 'YYYY-MM-DD') AS date_info, height, areas, surtyp, zpg_exception FROM waterway.sounding_results_iso_areas ia JOIN waterway.sounding_results sr ON sr.id = ia.sounding_result_id $$);