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,