diff --git a/pandora_console/extras/mr/39.sql b/pandora_console/extras/mr/39.sql index 70056de503..676ac4137e 100644 --- a/pandora_console/extras/mr/39.sql +++ b/pandora_console/extras/mr/39.sql @@ -1,6 +1,7 @@ START TRANSACTION; 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; diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index 7ab696009d..538d2acf72 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -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 `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 `unknown_as_critical` tinyint(1) NOT NULL default 0 AFTER `warning`; + UPDATE tservice SET `is_favourite` = 1 WHERE `name` REGEXP '^[_|.|\[|\(]'; -- ALl previous services are manual now. UPDATE `tservice` SET `auto_calculate` = 0; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 9ad79d7f99..eaed73d84c 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -2684,6 +2684,7 @@ CREATE TABLE IF NOT EXISTS `tservice` ( `id_group` int(10) unsigned NOT NULL default 0, `critical` 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_value` float(20,3) NOT NULL default 0, `status` tinyint(3) NOT NULL default -1,