Mercurial > gemma
view schema/updates/1310/01.import-changed.sql @ 5624:29d729607ac1
Added tag v5.7 for changeset ff0af91a7f62
author | Sascha Wilde <wilde@sha-bang.de> |
---|---|
date | Thu, 22 Dec 2022 18:42:14 +0100 |
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);