supervisor added subtype to tmensajes

Former-commit-id: 650e7317a4fea4e44be850af1156024297396a16
This commit is contained in:
fbsanchez 2019-02-07 12:56:48 +01:00
parent 9ea3980b26
commit cf5716e569
3 changed files with 16 additions and 15 deletions

View File

@ -1886,13 +1886,13 @@ CREATE TABLE `tnotification_source` (
--
-- Dumping data for table `tnotification_source`
--
INSERT INTO `tnotification_source`(`description`, `icon`, `max_postpone_time`, `user_editable`, `also_mail`) VALUES
("System status", "icono_info_mr.png", 86400, 1, 0),
("Message", "icono_info_mr.png", 86400, 1, 0),
("Pending task", "icono_info_mr.png", 86400, 1, 0),
("Advertisement", "icono_info_mr.png", 86400, 1, 0),
("Official communication", "icono_info_mr.png", 86400, 1, 0),
("Sugerence", "icono_info_mr.png", 86400, 1, 0);
INSERT INTO `tnotification_source`(`description`, `icon`, `max_postpone_time`, `enabled`, `user_editable`, `also_mail`) VALUES
("System status", "icono_info_mr.png", 86400, 1, 1, 0),
("Message", "icono_info_mr.png", 86400, 1, 1, 0),
("Pending task", "icono_info_mr.png", 86400, 1, 1, 0),
("Advertisement", "icono_info_mr.png", 86400, 1, 1, 0),
("Official communication", "icono_info_mr.png", 86400, 1, 1, 0),
("Sugerence", "icono_info_mr.png", 86400, 1, 1, 0);
-- -----------------------------------------------------
-- Table `tmensajes`
@ -1901,6 +1901,7 @@ ALTER TABLE `tmensajes` ADD COLUMN `url` TEXT;
ALTER TABLE `tmensajes` ADD COLUMN `response_mode` VARCHAR(200) DEFAULT NULL;
ALTER TABLE `tmensajes` ADD COLUMN `citicity` INT(10) UNSIGNED DEFAULT '0';
ALTER TABLE `tmensajes` ADD COLUMN `id_source` BIGINT(20) UNSIGNED NOT NULL;
ALTER TABLE `tmensajes` ADD COLUMN `subtype` VARCHAR(255) DEFAULT '';
ALTER TABLE `tmensajes` ADD CONSTRAINT `tsource_fk` FOREIGN KEY (`id_source`) REFERENCES `tnotification_source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE

View File

@ -1191,6 +1191,7 @@ CREATE TABLE IF NOT EXISTS `tmensajes` (
`response_mode` VARCHAR(200) DEFAULT NULL,
`citicity` INT(10) UNSIGNED DEFAULT '0',
`id_source` BIGINT(20) UNSIGNED NOT NULL,
`subtype` VARCHAR(255) DEFAULT '',
PRIMARY KEY (`id_mensaje`),
UNIQUE KEY `id_mensaje` (`id_mensaje`),
KEY `tsource_fk` (`id_source`),

View File

@ -1271,11 +1271,10 @@ INSERT INTO tlog_graph_models VALUES (1, 'Apache log model',
--
-- Dumping data for table `tnotification_source`
--
INSERT INTO `tnotification_source`(`description`, `icon`, `max_postpone_time`, `user_editable`, `also_mail`) VALUES
("System status", "icono_info_mr.png", 86400, 1, 0),
("Message", "icono_info_mr.png", 86400, 1, 0),
("Pending task", "icono_info_mr.png", 86400, 1, 0),
("Advertisement", "icono_info_mr.png", 86400, 1, 0),
("Official communication", "icono_info_mr.png", 86400, 1, 0),
("Sugerence", "icono_info_mr.png", 86400, 1, 0);
INSERT INTO `tnotification_source`(`description`, `icon`, `max_postpone_time`, `enabled`, `user_editable`, `also_mail`) VALUES
("System status", "icono_info_mr.png", 86400, 1, 1, 0),
("Message", "icono_info_mr.png", 86400, 1, 1, 0),
("Pending task", "icono_info_mr.png", 86400, 1, 1, 0),
("Advertisement", "icono_info_mr.png", 86400, 1, 1, 0),
("Official communication", "icono_info_mr.png", 86400, 1, 1, 0),
("Sugerence", "icono_info_mr.png", 86400, 1, 1, 0);