From: Nicolas Boisselier Date: Mon, 4 Nov 2024 07:24:23 +0000 (+0100) Subject: lib/postgres/host_report.sql X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=7638264b21c2a29022dce60d7e9ef8e0e624645c;p=nb.git lib/postgres/host_report.sql --- diff --git a/lib/postgres/host_report.sql b/lib/postgres/host_report.sql index 5ad12afe..364af909 100644 --- a/lib/postgres/host_report.sql +++ b/lib/postgres/host_report.sql @@ -10,7 +10,7 @@ CREATE VIEW host_report AS ,(SELECT MAX(hb.val) FROM host_info hb WHERE hb.key LIKE CONCAT('backup_servers.',hi.host,'.files_transfer')) as backup_files FROM host_info hi GROUP BY host -ORDER BY git_updated DESC,backup_updated DESC,host +ORDER BY backup_updated DESC,git_updated DESC,host ; GRANT ALL PRIVILEGES ON host_report TO nico; GRANT ALL PRIVILEGES ON host_report TO icolas;