diff options
author | Simon Rettberg | 2019-03-06 17:12:50 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-06 17:12:50 +0100 |
commit | 2e5faca27922ec098fe3c9569f0739ceaa12ed66 (patch) | |
tree | 28881fdd312fed46d22d3b6fe494806a0b0e05a6 /modules-available/statistics/install.inc.php | |
parent | [webinterface] Update translations (diff) | |
download | slx-admin-2e5faca27922ec098fe3c9569f0739ceaa12ed66.tar.gz slx-admin-2e5faca27922ec098fe3c9569f0739ceaa12ed66.tar.xz slx-admin-2e5faca27922ec098fe3c9569f0739ceaa12ed66.zip |
[statistics] Actually convert all old UUID fallback formats
Diffstat (limited to 'modules-available/statistics/install.inc.php')
-rw-r--r-- | modules-available/statistics/install.inc.php | 2 |
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); |