2019-10-28 12:18:13 +01:00
|
|
|
START TRANSACTION;
|
|
|
|
|
2019-10-15 16:50:05 +02:00
|
|
|
ALTER TABLE `tlayout_template_data` ADD COLUMN `cache_expiration` INTEGER UNSIGNED NOT NULL DEFAULT 0;
|
|
|
|
|
2019-10-28 12:18:13 +01:00
|
|
|
INSERT INTO `ttipo_modulo` VALUES
|
|
|
|
(34,'remote_cmd', 10, 'Remote execution, numeric data', 'mod_remote_cmd.png'),
|
|
|
|
(35,'remote_cmd_proc', 10, 'Remote execution, boolean data', 'mod_remote_cmd_proc.png'),
|
|
|
|
(36,'remote_cmd_string', 10, 'Remote execution, alphanumeric data', 'mod_remote_cmd_string.png'),
|
|
|
|
(37,'remote_cmd_inc', 10, 'Remote execution, incremental data', 'mod_remote_cmd_inc.png');
|
|
|
|
|
2019-11-08 11:28:37 +01:00
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `log_content` TEXT;
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `log_source` TEXT;
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `log_agent` TEXT;
|
|
|
|
|
2019-11-20 10:40:52 +01:00
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_agent` text DESC 'Operator for agent';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_id_usuario` text DESC 'Operator for id_usuario';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_id_grupo` text DESC 'Operator for id_grupo';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_evento` text DESC 'Operator for evento';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_event_type` text DESC 'Operator for event_type';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_module` text DESC 'Operator for module';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_alert` text DESC 'Operator for alert';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_criticity` text DESC 'Operator for criticity';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_user_comment` text DESC 'Operator for user_comment';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_id_tag` text DESC 'Operator for id_tag';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_log_content` text DESC 'Operator for log_content';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_log_source` text DESC 'Operator for log_source';
|
|
|
|
ALTER TABLE `tevent_rule` ADD COLUMN `operator_log_agent` text DESC 'Operator for log_agent';
|
|
|
|
|
2019-10-30 08:04:13 +01:00
|
|
|
CREATE TABLE `tremote_command` (
|
|
|
|
`id` SERIAL,
|
|
|
|
`name` varchar(150) NOT NULL,
|
|
|
|
`timeout` int(10) unsigned NOT NULL default 30,
|
|
|
|
`retries` int(10) unsigned NOT NULL default 3,
|
|
|
|
`preconditions` text,
|
|
|
|
`script` text,
|
|
|
|
`postconditions` text,
|
|
|
|
`utimestamp` int(20) unsigned NOT NULL default 0,
|
|
|
|
`id_group` int(10) unsigned NOT NULL default 0,
|
|
|
|
PRIMARY KEY (`id`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
CREATE TABLE `tremote_command_target` (
|
2019-10-30 14:43:10 +01:00
|
|
|
`id` SERIAL,
|
2019-10-30 14:52:10 +01:00
|
|
|
`rcmd_id` bigint unsigned NOT NULL,
|
2019-11-05 15:27:06 +01:00
|
|
|
`id_agent` int(10) unsigned NOT NULL,
|
2019-10-30 08:04:13 +01:00
|
|
|
`utimestamp` int(20) unsigned NOT NULL default 0,
|
2019-11-15 09:45:49 +01:00
|
|
|
`stdout` MEDIUMTEXT,
|
|
|
|
`stderr` MEDIUMTEXT,
|
2019-10-30 08:04:13 +01:00
|
|
|
`errorlevel` int(10) unsigned NOT NULL default 0,
|
2019-10-30 14:43:10 +01:00
|
|
|
PRIMARY KEY (`id`),
|
2019-10-30 08:04:13 +01:00
|
|
|
FOREIGN KEY (`rcmd_id`) REFERENCES `tremote_command`(`id`)
|
|
|
|
ON UPDATE CASCADE ON DELETE CASCADE
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
2019-11-14 14:14:50 +01:00
|
|
|
INSERT INTO `tconfig`(`token`, `value`) VALUES ('welcome_state', -1);
|
|
|
|
|
2019-10-31 21:13:18 +01:00
|
|
|
ALTER TABLE `tcredential_store` MODIFY COLUMN `product` enum('CUSTOM', 'AWS', 'AZURE', 'GOOGLE', 'SAP') default 'CUSTOM';
|
|
|
|
|
2019-10-15 16:50:05 +02:00
|
|
|
COMMIT;
|