Mercurial > gemma
view schema/updates/1303/01.add_key_column.sql @ 5677:a57be8bfb6ea sr-v2
More suited file names.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 11 Feb 2024 09:51:21 +0100 |
parents | 443867b548b5 |
children |
line wrap: on
line source
ALTER TABLE sys_admin.published_services ADD key_column varchar; UPDATE sys_admin.published_services SET key_column = 'isrs_code' WHERE schema = 'waterway' AND name = 'gauges_geoserver'; UPDATE sys_admin.published_services SET key_column = 'id' WHERE schema = 'waterway' AND name IN( 'sections_geoserver', 'stretches_geoserver', 'distance_marks_ashore_geoserver', 'bottlenecks_geoserver'); UPDATE sys_admin.published_services SET key_column = 'location' WHERE schema = 'waterway' AND name = 'distance_marks_geoserver'; DROP TABLE waterway.gt_pk_metadata