Mercurial > gemma
view schema/updates/1310/01.import-changed.sql @ 5437:eeee1c411576 marking-single-beam
Pdf-Template: Use survey-date for {date-minor} when bottleneck survey is visible.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 13 Jul 2021 12:24:29 +0200 |
parents | 47922c1a088d |
children |
line wrap: on
line source
ALTER TABLE import.imports ADD COLUMN changed timestamp WITH time zone NOT NULL DEFAULT CURRENT_TIMESTAMP; UPDATE import.imports imp SET changed = (SELECT coalesce(max(time), imp.changed) FROM import.import_logs WHERE import_id = imp.id);