From 2e5faca27922ec098fe3c9569f0739ceaa12ed66 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 6 Mar 2019 17:12:50 +0100 Subject: [statistics] Actually convert all old UUID fallback formats --- modules-available/statistics/install.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/statistics/install.inc.php') 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); -- cgit v1.2.3-55-g7522