mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added is_favourite to tservice table
This commit is contained in:
parent
8196ed21df
commit
8979890964
@ -1,3 +1,6 @@
|
|||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
|
|
||||||
|
ALTER TABLE `tservice` ADD COLUMN `is_favourite` tinyint(1) NOT NULL default 0;
|
||||||
|
UPDATE tservice SET `is_favourite` = 1 WHERE `name` REGEXP '^[_|.|\[|\(]';
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
@ -1273,6 +1273,8 @@ ALTER TABLE `tservice` ADD COLUMN `quiet` tinyint(1) NOT NULL default 0;
|
|||||||
ALTER TABLE `tservice` ADD COLUMN `cps` int NOT NULL default 0;
|
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;
|
||||||
|
UPDATE tservice SET `is_favourite` = 1 WHERE `name` REGEXP '^[_|.|\[|\(]';
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Table `tlayout`
|
-- Table `tlayout`
|
||||||
|
@ -2470,6 +2470,7 @@ CREATE TABLE IF NOT EXISTS `tservice` (
|
|||||||
`cps` int NOT NULL default 0,
|
`cps` int NOT NULL default 0,
|
||||||
`cascade_protection` tinyint(1) NOT NULL default 0,
|
`cascade_protection` tinyint(1) NOT NULL default 0,
|
||||||
`evaluate_sla` int(1) NOT NULL default 0,
|
`evaluate_sla` int(1) NOT NULL default 0,
|
||||||
|
`is_favourite` tinyint(1) NOT NULL default 0,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB
|
) ENGINE=InnoDB
|
||||||
COMMENT = 'Table to define services to monitor'
|
COMMENT = 'Table to define services to monitor'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user