mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Notify about failed updates, block detectable bad updates (#7188)
* Feature: Notify about failed updates, block detectable bad updates Ability to post notifications when the update fails. Detect and roll back updates that will cause broken installs. (Needs testing) Add severity to notifications, critical (2) notifications will display a toast. This will be used for removing in-tree dependencies and raising the minimum php version. * Improve naming a bit add phpdoc to new_notification In case multiple notifications are created, remove them all. * Remove notifications when update is disabled. * update travis to use db testing * added missing index
This commit is contained in:
committed by
Neil Lathwood
parent
932b05c38c
commit
0def643e09
3
sql-schema/205.sql
Normal file
3
sql-schema/205.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE `notifications` CHANGE `datetime` `datetime` timestamp NOT NULL DEFAULT '1970-01-02 00:00:00';
|
||||
ALTER TABLE `notifications` ADD `severity` INT DEFAULT 0 NULL COMMENT '0=ok,1=warning,2=critical' AFTER `body`;
|
||||
CREATE INDEX `notifications_severity_index` ON `notifications` (`severity`);
|
Reference in New Issue
Block a user