diff options
author | Simon Rettberg | 2018-01-11 11:19:14 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-01-11 11:19:14 +0100 |
commit | 4537b9b7c9eb63bf3b2d5066d6c50e68f7de4956 (patch) | |
tree | 454c72e456ca01d5ab4a39114851737c9d7fc57c /modules-available/syslog | |
parent | [translations] Focus first untranslated tag (diff) | |
download | slx-admin-4537b9b7c9eb63bf3b2d5066d6c50e68f7de4956.tar.gz slx-admin-4537b9b7c9eb63bf3b2d5066d6c50e68f7de4956.tar.xz slx-admin-4537b9b7c9eb63bf3b2d5066d6c50e68f7de4956.zip |
[statistics] Add "replace machines" feature (not linked to anywhere yet)
Diffstat (limited to 'modules-available/syslog')
-rw-r--r-- | modules-available/syslog/hooks/statistics-machine-replace.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/syslog/hooks/statistics-machine-replace.inc.php b/modules-available/syslog/hooks/statistics-machine-replace.inc.php new file mode 100644 index 00000000..6be0dd76 --- /dev/null +++ b/modules-available/syslog/hooks/statistics-machine-replace.inc.php @@ -0,0 +1,5 @@ +<?php + +foreach ($list as $entry) { + Database::exec('UPDATE IGNORE clientlog SET machineuuid = :new WHERE machineuuid = :old AND dateline < :datelimit', $entry); +} |