Mercurial > gemma
view schema/updates/1303/01.add_key_column.sql @ 5650:cb3c4ba0f052 DQR adjustments
Merged default branch
author | Sascha Wilde <wilde@sha-bang.de> |
---|---|
date | Thu, 29 Jun 2023 13:18:54 +0200 |
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