summaryrefslogtreecommitdiffstats
path: root/modules-available/syslog/hooks/statistics-machine-replace.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/syslog/hooks/statistics-machine-replace.inc.php')
-rw-r--r--modules-available/syslog/hooks/statistics-machine-replace.inc.php5
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);
+}