diff options
author | Simon Rettberg | 2021-01-29 14:29:57 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-01-29 14:29:57 +0100 |
commit | 8385ab853edbef6d72412ceca1ddff0b632cb545 (patch) | |
tree | 584895825e7714566d5541e164a9dcc8d2334c47 /modules-available/statistics/install.inc.php | |
parent | [permissionmanager] Fix install always reporting UPDATE_DONE (diff) | |
download | slx-admin-8385ab853edbef6d72412ceca1ddff0b632cb545.tar.gz slx-admin-8385ab853edbef6d72412ceca1ddff0b632cb545.tar.xz slx-admin-8385ab853edbef6d72412ceca1ddff0b632cb545.zip |
[statistics] Show ID45 live stats
Closes #3634
Diffstat (limited to 'modules-available/statistics/install.inc.php')
-rw-r--r-- | modules-available/statistics/install.inc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules-available/statistics/install.inc.php b/modules-available/statistics/install.inc.php index e8788224..54e844e0 100644 --- a/modules-available/statistics/install.inc.php +++ b/modules-available/statistics/install.inc.php @@ -297,5 +297,16 @@ if (!tableHasColumn('machine', 'currentrunmode')) { $res[] = UPDATE_DONE; } +// 2019-01-25: Add memory/temp stats column +if (!tableHasColumn('machine', 'live_id45size')) { + $ret = Database::exec("ALTER TABLE `machine` + ADD COLUMN `live_id45size` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `live_tmpfree`, + ADD COLUMN `live_id45free` int(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `live_id45size`"); + if ($ret === false) { + finalResponse(UPDATE_FAILED, 'Adding mem-stat columns to machine table failed: ' . Database::lastError()); + } + $res[] = UPDATE_DONE; +} + // Create response responseFromArray($res); |