MR change smart services
This commit is contained in:
parent
c6c9b63338
commit
6c5484baf0
|
@ -0,0 +1,7 @@
|
|||
START TRANSACTION;
|
||||
|
||||
ALTER TABLE `tservice_element` ADD COLUMN `rules` text;
|
||||
|
||||
UPDATE `tservice` SET `auto_calculate`=0;
|
||||
|
||||
COMMIT;
|
|
@ -1527,6 +1527,13 @@ ALTER TABLE `tservice` ADD COLUMN `cascade_protection` tinyint(1) NOT NULL defau
|
|||
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;
|
||||
UPDATE tservice SET `is_favourite` = 1 WHERE `name` REGEXP '^[_|.|\[|\(]';
|
||||
-- ALl previous services are manual now.
|
||||
UPDATE `tservice` SET `auto_calculate` = 0;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tservice_element`
|
||||
-- ---------------------------------------------------------------------
|
||||
ALTER TABLE `tservice_element` ADD COLUMN `rules` text;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tlayout`
|
||||
|
|
|
@ -2724,6 +2724,7 @@ CREATE TABLE IF NOT EXISTS `tservice_element` (
|
|||
`id_agent` int(10) unsigned NOT NULL default 0,
|
||||
`id_service_child` int(10) unsigned NOT NULL default 0,
|
||||
`id_server_meta` int(10) unsigned NOT NULL default 0,
|
||||
`rules` text,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB
|
||||
COMMENT = 'Table to define the modules and the weights of the modules that define a service'
|
||||
|
|
Loading…
Reference in New Issue