Added lastupdate column which will always use NOW() when doing a dbUpdate #2590

Merged
merged 1 commit into from Dec 9, 2015

Projects

None yet

3 participants

@laf
Member
laf commented Dec 9, 2015

Would enable #2493

Handy for alerts as you can then see when a sensor stops responding. At present you can only alert when values change. If they stop updating you can now alert.

Seems minimal impact running the query:

mysql> ALTER TABLE  `sensors` ADD  `lastupdate` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ;
Query OK, 3443 rows affected (0.10 sec)
Records: 3443  Duplicates: 0  Warnings: 0
@laf laf Added lastupdate column which will always use NOW() when doing a dbUp…
…date
c141efc
@laf laf added the Schema label Dec 9, 2015
@f0o f0o merged commit 810f53f into librenms:master Dec 9, 2015

2 checks passed

Auto-Deploy Build finished. No test results found.
Details
Scrutinizer No new issues
Details
@laf laf deleted the laf:issue-2493 branch Dec 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment