Mercurial > gemma
view schema/updates/1310/01.import-changed.sql @ 5361:ce1fe22bda5a extented-report
Backed out changeset f845c3b7b68e
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 22 Jun 2021 17:12:17 +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);