MR change - minor
This commit is contained in:
parent
6c5484baf0
commit
9bae4f8a17
|
@ -1,6 +1,7 @@
|
||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
|
|
||||||
ALTER TABLE `tservice_element` ADD COLUMN `rules` text;
|
ALTER TABLE `tservice_element` ADD COLUMN `rules` text;
|
||||||
|
ALTER TABLE `tservice` ADD COLUMN `unknown_as_critical` tinyint(1) NOT NULL default 0 AFTER `warning`;
|
||||||
|
|
||||||
UPDATE `tservice` SET `auto_calculate`=0;
|
UPDATE `tservice` SET `auto_calculate`=0;
|
||||||
|
|
||||||
|
|
|
@ -1526,6 +1526,8 @@ ALTER TABLE `tservice` ADD COLUMN `cps` int NOT NULL default 0;
|
||||||
ALTER TABLE `tservice` ADD COLUMN `cascade_protection` tinyint(1) NOT NULL default 0;
|
ALTER TABLE `tservice` ADD COLUMN `cascade_protection` tinyint(1) NOT NULL default 0;
|
||||||
ALTER TABLE `tservice` ADD COLUMN `evaluate_sla` int(1) NOT NULL default 0;
|
ALTER TABLE `tservice` ADD COLUMN `evaluate_sla` int(1) NOT NULL default 0;
|
||||||
ALTER TABLE `tservice` ADD COLUMN `is_favourite` tinyint(1) NOT NULL default 0;
|
ALTER TABLE `tservice` ADD COLUMN `is_favourite` tinyint(1) NOT NULL default 0;
|
||||||
|
ALTER TABLE `tservice` ADD COLUMN `unknown_as_critical` tinyint(1) NOT NULL default 0 AFTER `warning`;
|
||||||
|
|
||||||
UPDATE tservice SET `is_favourite` = 1 WHERE `name` REGEXP '^[_|.|\[|\(]';
|
UPDATE tservice SET `is_favourite` = 1 WHERE `name` REGEXP '^[_|.|\[|\(]';
|
||||||
-- ALl previous services are manual now.
|
-- ALl previous services are manual now.
|
||||||
UPDATE `tservice` SET `auto_calculate` = 0;
|
UPDATE `tservice` SET `auto_calculate` = 0;
|
||||||
|
|
|
@ -2684,6 +2684,7 @@ CREATE TABLE IF NOT EXISTS `tservice` (
|
||||||
`id_group` int(10) unsigned NOT NULL default 0,
|
`id_group` int(10) unsigned NOT NULL default 0,
|
||||||
`critical` float(20,3) NOT NULL default 0,
|
`critical` float(20,3) NOT NULL default 0,
|
||||||
`warning` float(20,3) NOT NULL default 0,
|
`warning` float(20,3) NOT NULL default 0,
|
||||||
|
`unknown_as_critical` tinyint(1) NOT NULL default 0,
|
||||||
`service_interval` float(20,3) NOT NULL default 0,
|
`service_interval` float(20,3) NOT NULL default 0,
|
||||||
`service_value` float(20,3) NOT NULL default 0,
|
`service_value` float(20,3) NOT NULL default 0,
|
||||||
`status` tinyint(3) NOT NULL default -1,
|
`status` tinyint(3) NOT NULL default -1,
|
||||||
|
|
Loading…
Reference in New Issue