From afcd03658ea3f279e0e91c154131beaefecdb50b Mon Sep 17 00:00:00 2001 From: enriquecd Date: Tue, 5 Dec 2017 11:40:41 +0100 Subject: [PATCH] Fix sending mails for reports an templates reports by cronjobs - #1611 --- pandora_console/extras/mr/10.sql | 1 + pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql | 1 + pandora_console/pandoradb.sql | 1 + 3 files changed, 3 insertions(+) diff --git a/pandora_console/extras/mr/10.sql b/pandora_console/extras/mr/10.sql index 2b58ce08c4..2a78c9c413 100644 --- a/pandora_console/extras/mr/10.sql +++ b/pandora_console/extras/mr/10.sql @@ -2,6 +2,7 @@ START TRANSACTION; ALTER TABLE tsnmp_filter ADD unified_filters_id int(10) NOT NULL DEFAULT 0; ALTER TABLE treport_content_template ADD COLUMN hide_no_data tinyint(1) DEFAULT 0; +ALTER TABLE treport_content ADD COLUMN hide_no_data tinyint(1) DEFAULT 0; ALTER TABLE tgraph_source ADD COLUMN `order` int(10) NOT NULL default 0; COMMIT; \ No newline at end of file diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index 14a1285b5f..f4a5327828 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -1287,6 +1287,7 @@ ALTER TABLE treport_content ADD COLUMN `historical_db` tinyint(1) NOT NULL DEFAU ALTER TABLE treport_content ADD COLUMN `lapse_calc` tinyint(1) default '0'; ALTER TABLE treport_content ADD COLUMN `lapse` int(11) default '300'; ALTER TABLE treport_content ADD COLUMN `visual_format` tinyint(1) default '0'; +ALTER TABLE treport_content ADD COLUMN `hide_no_data` tinyint(1) default '0'; -- --------------------------------------------------------------------- -- Table `tmodule_relationship` diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 2ebd99bd6f..6f51d66205 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -1277,6 +1277,7 @@ CREATE TABLE IF NOT EXISTS `treport_content` ( `lapse_calc` tinyint(1) UNSIGNED NOT NULL default '0', `lapse` int(11) UNSIGNED NOT NULL default '300', `visual_format` tinyint(1) UNSIGNED NOT NULL default '0', + `hide_no_data` tinyint(1) default 0, PRIMARY KEY(`id_rc`), FOREIGN KEY (`id_report`) REFERENCES treport(`id_report`) ON UPDATE CASCADE ON DELETE CASCADE