summaryrefslogtreecommitdiffstats
path: root/modules-available/syslog/hooks/statistics/machine-replace.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2018-02-09 12:12:31 +0100
committerSimon Rettberg2018-02-09 12:12:31 +0100
commitd57ee1cfdd99fb4e44f5ce6d92d6712c30ff0aa4 (patch)
treec1030efbdb837f53651272e015a3ab5562f145c8 /modules-available/syslog/hooks/statistics/machine-replace.inc.php
parent[systemstatus] lang-descriptions for permissions (diff)
parent[inc/User] Add locationid 0 to allowed locations in fallback mode (diff)
downloadslx-admin-d57ee1cfdd99fb4e44f5ce6d92d6712c30ff0aa4.tar.gz
slx-admin-d57ee1cfdd99fb4e44f5ce6d92d6712c30ff0aa4.tar.xz
slx-admin-d57ee1cfdd99fb4e44f5ce6d92d6712c30ff0aa4.zip
Merge branch 'master' into permission-manager
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);
+}