summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/install.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-12-07 13:52:54 +0100
committerSimon Rettberg2019-12-07 13:52:54 +0100
commit3e45ec44d22f03ca6642e08f695c6d7274cecfaf (patch)
treea71b2ec81895b198757d8ec7272548b42ee074b8 /modules-available/rebootcontrol/install.inc.php
parent[apis/cron] Simple logging function for debugging (diff)
downloadslx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.tar.gz
slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.tar.xz
slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.zip
[statistics/rebootcontrol] Add WOL button to statistics module
* Overhauled task display in rebootcontrol module * Can only add subnets by CIDR now instead of start and end
Diffstat (limited to 'modules-available/rebootcontrol/install.inc.php')
-rw-r--r--modules-available/rebootcontrol/install.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/rebootcontrol/install.inc.php b/modules-available/rebootcontrol/install.inc.php
index eb484d3e..0aedfa20 100644
--- a/modules-available/rebootcontrol/install.inc.php
+++ b/modules-available/rebootcontrol/install.inc.php
@@ -8,7 +8,7 @@ $output[] = tableCreate('reboot_subnet', "
`end` INT(10) UNSIGNED NOT NULL,
`fixed` BOOL NOT NULL,
`isdirect` BOOL NOT NULL,
- `lastdirectcheck` INT(10) UNSIGNED NOT NULL DEFAULT '0',
+ `nextdirectcheck` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`lastseen` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`seencount` INT(10) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`subnetid`),
@@ -33,9 +33,9 @@ $output[] = tableCreate('reboot_subnet_x_subnet', "
`srcid` INT(10) UNSIGNED NOT NULL,
`dstid` INT(10) UNSIGNED NOT NULL,
`reachable` BOOL NOT NULL,
- `lastcheck` INT(10) UNSIGNED NOT NULL DEFAULT '0',
+ `nextcheck` INT(10) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`srcid`, `dstid`),
- KEY `lastcheck` (`lastcheck`)");
+ KEY `nextcheck` (`nextcheck`)");
$output[] = tableAddConstraint('reboot_jumphost_x_subnet', 'hostid', 'reboot_jumphost', 'hostid',
'ON UPDATE CASCADE ON DELETE CASCADE');