46 lines
3.0 KiB
SQL
46 lines
3.0 KiB
SQL
START TRANSACTION;
|
|
|
|
ALTER TABLE `treport_content` ADD COLUMN `current_month` TINYINT(1) DEFAULT '1';
|
|
|
|
ALTER TABLE `treport_content_template` ADD COLUMN `current_month` TINYINT(1) DEFAULT '1';
|
|
|
|
ALTER TABLE `talert_commands` ADD COLUMN `fields_hidden` text;
|
|
|
|
ALTER TABLE `talert_templates` MODIFY COLUMN `type` ENUM('regex','max_min','max','min','equal','not_equal','warning','critical','onchange','unknown','always','not_normal');
|
|
|
|
DELETE FROM `tevent_response` WHERE `name` LIKE 'Create Integria IMS incident from event';
|
|
INSERT INTO `tnews` (`id_news`, `author`, `subject`, `text`, `timestamp`) VALUES (NULL,'admin','Welcome to Pandora FMS Console', '<p style="text-align: center; font-size: 13px;">Hello, congratulations, if you've arrived here you already have an operational monitoring console. Remember that our forums and online documentation are available 24x7 to get you out of any trouble. You can replace this message with a personalized one at Admin tools -> Site news.</p> ',NOW());
|
|
|
|
|
|
INSERT INTO `tnotification_source_user` (`id_source`, `id_user`, `enabled`, `also_mail`) VALUES ((SELECT `id` FROM `tnotification_source` WHERE `description`="Official communication"), "admin", 1, 0);
|
|
UPDATE `tnotification_source` SET `enabled`=1 WHERE `description` = 'System status' OR `description` = 'Official communication';
|
|
UPDATE `tnotification_source` SET `icon`="icono_logo_pandora.png" WHERE `description` = 'Official communication';
|
|
|
|
-- ---------------------------------------------------------------------
|
|
-- Table `tvisual_console_items_cache`
|
|
-- ---------------------------------------------------------------------
|
|
CREATE TABLE IF NOT EXISTS `tvisual_console_elements_cache` (
|
|
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
`vc_id` INTEGER UNSIGNED NOT NULL,
|
|
`vc_item_id` INTEGER UNSIGNED NOT NULL,
|
|
`user_id` VARCHAR(60) DEFAULT NULL,
|
|
`data` TEXT NOT NULL,
|
|
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`expiration` INTEGER UNSIGNED NOT NULL COMMENT 'Seconds to expire',
|
|
PRIMARY KEY(`id`),
|
|
FOREIGN KEY(`vc_id`) REFERENCES `tlayout`(`id`)
|
|
ON DELETE CASCADE,
|
|
FOREIGN KEY(`vc_item_id`) REFERENCES `tlayout_data`(`id`)
|
|
ON DELETE CASCADE,
|
|
FOREIGN KEY (`user_id`) REFERENCES `tusuario`(`id_user`)
|
|
ON DELETE CASCADE ON UPDATE CASCADE
|
|
) engine=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
ALTER TABLE `tlayout_data` ADD COLUMN `cache_expiration` INTEGER UNSIGNED NOT NULL DEFAULT 0;
|
|
|
|
ALTER TABLE `tusuario` ADD COLUMN `ehorus_user_level_user` VARCHAR(60);
|
|
ALTER TABLE `tusuario` ADD COLUMN `ehorus_user_level_pass` VARCHAR(45);
|
|
ALTER TABLE `tusuario` ADD COLUMN `ehorus_user_level_enabled` TINYINT(1) DEFAULT '1';
|
|
|
|
COMMIT;
|