From e986005cc067293844e34bb9d7cf94f15d1d0d22 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 13 Oct 2021 17:23:34 +0200 Subject: [PATCH] #8090 Added auto_adjust in tlayout_template --- pandora_console/extras/mr/50.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/50.sql b/pandora_console/extras/mr/50.sql index 31703904f5..ca1886737d 100644 --- a/pandora_console/extras/mr/50.sql +++ b/pandora_console/extras/mr/50.sql @@ -14,6 +14,7 @@ ALTER TABLE `treport_content_template` ADD COLUMN `time_in_warning_status` TINYI ALTER TABLE `treport_content_template` ADD COLUMN `checks_in_warning_status` TINYINT(1) DEFAULT '0'; ALTER TABLE `treport_content` ADD COLUMN `time_in_warning_status` TINYINT(1) DEFAULT '0'; ALTER TABLE `treport_content` ADD COLUMN `checks_in_warning_status` TINYINT(1) DEFAULT '0'; +ALTER TABLE `tlayout_template` ADD COLUMN `auto_adjust` INTEGER UNSIGNED NOT NULL default 0; INSERT INTO `treport_content` (id_report, id_gs, id_agent_module, type, period, `order`, name, description, id_agent, `text`, external_source, treport_custom_sql_id, header_definition, column_separator, line_separator, time_from, time_to, style, server_name, time_in_warning_status, checks_in_warning_status, failover_mode) SELECT id_report, 0, id_agent_module, 'availability', period, `order`, name, description, id_agent, NULL, NULL, treport_custom_sql_id, header_definition, column_separator, line_separator, time_from, time_to, '{"show_in_same_row":0,"hide_notinit_agents":0,"priority_mode":1,"dyn_height":"230"}', server_name, 1, 1, 0 FROM treport_content WHERE type = 'histogram_data'; INSERT INTO `treport_content_item` (id_report_content, id_agent_module, id_agent_module_failover, operation, server_name) SELECT id_rc, id_agent_module, 0, '', server_name FROM treport_content WHERE type = 'availability' AND id_agent <> 0 AND id_agent_module <> 0; 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 5cd49029a9..b30162f256 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 @@ -2229,6 +2229,7 @@ CREATE TABLE IF NOT EXISTS `tlayout_template` ( ) ENGINE = InnoDB DEFAULT CHARSET=utf8; ALTER TABLE tlayout_template MODIFY `name` varchar(600) NOT NULL; +ALTER TABLE `tlayout` ADD COLUMN `auto_adjust` INTEGER UNSIGNED NOT NULL default 0; -- --------------------------------------------------------------------- -- Table `tlayout_template_data` diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 950816dab5..59266ba172 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -3695,6 +3695,7 @@ CREATE TABLE IF NOT EXISTS `tlayout_template` ( `width` INTEGER UNSIGNED NOT NULL default 0, `background_color` varchar(50) NOT NULL default '#FFF', `is_favourite` INTEGER UNSIGNED NOT NULL default 0, + `auto_adjust` INTEGER UNSIGNED NOT NULL default 0, PRIMARY KEY(`id`) ) ENGINE = InnoDB DEFAULT CHARSET=utf8;