From 8a27517cc59249006efbd73d3130c69e7c9d3154 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 12 Apr 2021 14:44:33 +0000 Subject: [PATCH] =?UTF-8?q?Ent=207281=20aumentar=20car=C3=A1cteres=20de=20?= =?UTF-8?q?la=20caja=20de=20consulta=20sql=20en=20informes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pandora_console/extras/mr/46.sql | 2 ++ pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql | 3 ++- pandora_console/pandoradb.sql | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pandora_console/extras/mr/46.sql b/pandora_console/extras/mr/46.sql index 9b04f79114..0e20f2af03 100644 --- a/pandora_console/extras/mr/46.sql +++ b/pandora_console/extras/mr/46.sql @@ -1,6 +1,8 @@ START TRANSACTION; ALTER TABLE `tagent_custom_fields` MODIFY COLUMN `combo_values` TEXT NOT NULL DEFAULT ''; +ALTER TABLE `treport_content` MODIFY `external_source` MEDIUMTEXT; +ALTER TABLE `treport_content_template` MODIFY `external_source` MEDIUMTEXT; UPDATE `talert_commands` SET `fields_descriptions` = '[\"Event name\",\"Event type\",\"Source\",\"Agent name or _agent_\",\"Event severity\",\"ID extra\",\"Tags separated by commas\",\"Comments\",\"\",\"\"]' WHERE `name` = "Monitoring Event"; 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 c8303640d3..e5841cc7e6 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 @@ -811,7 +811,7 @@ CREATE TABLE IF NOT EXISTS `treport_content_template` ( `description` mediumtext, `text_agent` text, `text` TEXT, - `external_source` Text, + `external_source` mediumtext, `treport_custom_sql_id` INTEGER UNSIGNED default 0, `header_definition` TinyText default NULL, `column_separator` TinyText default NULL, @@ -1741,6 +1741,7 @@ ALTER TABLE `treport_content` ADD COLUMN `landscape` tinyint(1) UNSIGNED NOT NUL ALTER TABLE `treport_content` ADD COLUMN `pagebreak` tinyint(1) UNSIGNED NOT NULL default 0; ALTER TABLE `treport_content` ADD COLUMN `compare_work_time` tinyint(1) UNSIGNED NOT NULL default 0; ALTER TABLE `treport_content` ADD COLUMN `graph_render` tinyint(1) UNSIGNED NOT NULL default 0; +ALTER TABLE `treport_content` MODIFY `external_source` MEDIUMTEXT; -- --------------------------------------------------------------------- -- Table `tmodule_relationship` diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index f6196562ee..2733dd80a1 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -1511,7 +1511,7 @@ CREATE TABLE IF NOT EXISTS `treport_content` ( `description` mediumtext, `id_agent` int(10) unsigned NOT NULL default 0, `text` TEXT, - `external_source` Text, + `external_source` mediumtext, `treport_custom_sql_id` INTEGER UNSIGNED default 0, `header_definition` TinyText, `column_separator` TinyText, @@ -3114,7 +3114,7 @@ CREATE TABLE IF NOT EXISTS `treport_content_template` ( `description` mediumtext, `text_agent` text, `text` TEXT, - `external_source` Text, + `external_source` mediumtext, `treport_custom_sql_id` INTEGER UNSIGNED default 0, `header_definition` TinyText default NULL, `column_separator` TinyText default NULL,