summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-06 17:12:50 +0100
committerSimon Rettberg2019-03-06 17:12:50 +0100
commit2e5faca27922ec098fe3c9569f0739ceaa12ed66 (patch)
tree28881fdd312fed46d22d3b6fe494806a0b0e05a6
parent[webinterface] Update translations (diff)
downloadslx-admin-2e5faca27922ec098fe3c9569f0739ceaa12ed66.tar.gz
slx-admin-2e5faca27922ec098fe3c9569f0739ceaa12ed66.tar.xz
slx-admin-2e5faca27922ec098fe3c9569f0739ceaa12ed66.zip
[statistics] Actually convert all old UUID fallback formats
-rw-r--r--modules-available/statistics/install.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/install.inc.php b/modules-available/statistics/install.inc.php
index a9e8fb7b..090f0617 100644
--- a/modules-available/statistics/install.inc.php
+++ b/modules-available/statistics/install.inc.php
@@ -235,7 +235,7 @@ if (!tableHasColumn('machine', 'live_tmpsize')) {
}
// 2019-02-20: Convert bogus UUIDs
-$res2 = Database::simpleQuery("SELECT machineuuid, macaddr FROM machine WHERE machineuuid LIKE '000000000000001-%'");
+$res2 = Database::simpleQuery("SELECT machineuuid, macaddr FROM machine WHERE machineuuid LIKE '00000000000000_-%'");
while ($row = $res2->fetch(PDO::FETCH_ASSOC)) {
$new = strtoupper('baad1d00-9491-4716-b98b-' . preg_replace('/[^0-9a-f]/i', '', $row['macaddr']));
error_log('Replacing ' . $row['machineuuid'] . ' with ' . $new);