view schema/updates/1426/02.configure_wms-t.sql @ 5560:f2204f91d286

Join the log lines of imports to the log exports to recover data from them. Used in SR export to extract information that where in the meta json but now are only found in the log.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 09 Feb 2022 18:34:40 +0100
parents cf25b23e3eec
children
line wrap: on
line source

UPDATE sys_admin.published_services
    SET
        srid = 4326,
        key_column = 'id',
        wmst_attribute = 'valid_from',
        wmst_end_attribute = 'valid_to',
        view_def = $$
            SELECT id,
                lower(validity) AS valid_from,
                COALESCE(upper(validity), current_timestamp) AS valid_to,
                wtwaxs,
                objnam,
                nobjnam
            FROM waterway.waterway_axis
            $$
    WHERE schema = 'waterway' AND name = 'waterway_axis';