view schema/updates/1310/01.import-changed.sql @ 5507:279900b28b1b deactivate-users

Client: Notify user by successfully deleting/deactivating users * Display an info-toast for the user's deleting-process.
author Fadi Abbud <fadi.abbud@intevation.de>
date Thu, 23 Sep 2021 14:47:36 +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);