diff options
author | Simon Rettberg | 2021-09-30 17:44:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-03-09 15:06:54 +0100 |
commit | d736e75ade7a4472aefb72af9036f86016adcb42 (patch) | |
tree | 39e38d5dd687bc6d25cb1de45ce4b78423aa7984 /modules-available/statistics/install.inc.php | |
parent | [passthrough] New module for managing hardware passthrough for QEMU (diff) | |
download | slx-admin-d736e75ade7a4472aefb72af9036f86016adcb42.tar.gz slx-admin-d736e75ade7a4472aefb72af9036f86016adcb42.tar.xz slx-admin-d736e75ade7a4472aefb72af9036f86016adcb42.zip |
[statistics] Adapt hw-data parsing to new json format for display
Diffstat (limited to 'modules-available/statistics/install.inc.php')
-rw-r--r-- | modules-available/statistics/install.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/statistics/install.inc.php b/modules-available/statistics/install.inc.php index 1b664d04..67c00d8f 100644 --- a/modules-available/statistics/install.inc.php +++ b/modules-available/statistics/install.inc.php @@ -40,7 +40,7 @@ $res[] = tableCreate('machine', " `cpumodel` varchar(120) NOT NULL, `systemmodel` varchar(120) NOT NULL DEFAULT '', `id44mb` int(10) unsigned NOT NULL, - `id45mb` int(10) unsigned NOT NULL, + `id45mb` int(10) unsigned NOT NULL DEFAULT 0, `badsectors` int(10) unsigned NOT NULL, `data` mediumblob NOT NULL, `dataparsetime` int(10) unsigned NOT NULL DEFAULT 0, @@ -346,7 +346,7 @@ if (!tableHasColumn('machine', 'dataparsetime')) { } if (!tableHasColumn('machine', 'id45mb')) { $ret = Database::exec("ALTER TABLE `machine` - ADD COLUMN `id45mb` int(10) unsigned NOT NULL AFTER `id44mb`"); + ADD COLUMN `id45mb` int(10) unsigned NOT NULL DEFAULT 0 AFTER `id44mb`"); if ($ret === false) { finalResponse(UPDATE_FAILED, 'Adding id45mb column to machine table failed: ' . Database::lastError()); } |