diff --git a/pandora_console/extras/mr/5.sql b/pandora_console/extras/mr/5.sql new file mode 100644 index 0000000000..afce7e0442 --- /dev/null +++ b/pandora_console/extras/mr/5.sql @@ -0,0 +1,15 @@ +START TRANSACTION; + +SET @st_oum707 = (SELECT IF( + (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'tgraph_source' AND table_schema = DATABASE() AND column_name = 'id_server') > 0, + "SELECT 1", + "ALTER TABLE tgraph_source ADD COLUMN id_server int(11) UNSIGNED NOT NULL default 0" +)); + +PREPARE pr_oum707 FROM @st_oum707; +EXECUTE pr_oum707; +DEALLOCATE PREPARE pr_oum707; + +ALTER TABLE tserver_export_data MODIFY `module_name` varchar(600) BINARY NOT NULL default ''; + +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 f37c3244ae..b3174434db 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 @@ -1408,16 +1408,10 @@ ALTER TABLE tserver_export MODIFY `name` varchar(600) BINARY NOT NULL default '' -- Table `tgraph_source` column 'id_server' -- --------------------------------------------------------------------- -START TRANSACTION; +ALTER TABLE tgraph_source ADD COLUMN id_server int(11) UNSIGNED NOT NULL default 0; -SET @st_oum707 = (SELECT IF( - (SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'tgraph_source' AND table_schema = DATABASE() AND column_name = 'id_server') > 0, - "SELECT 1", - "ALTER TABLE tgraph_source ADD COLUMN id_server int(11) UNSIGNED NOT NULL default 0" -)); +-- --------------------------------------------------------------------- +-- Table `tserver_export_data` +-- --------------------------------------------------------------------- -PREPARE pr_oum707 FROM @st_oum707; -EXECUTE pr_oum707; -DEALLOCATE PREPARE pr_oum707; - -COMMIT; \ No newline at end of file +ALTER TABLE tserver_export_data MODIFY `module_name` varchar(600) BINARY NOT NULL default ''; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 75b93af530..2166167065 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -1418,7 +1418,7 @@ CREATE TABLE IF NOT EXISTS `tserver_export_data` ( `id` int(20) unsigned NOT NULL auto_increment, `id_export_server` int(10) unsigned default NULL, `agent_name` varchar(100) NOT NULL default '', - `module_name` varchar(100) NOT NULL default '', + `module_name` varchar(600) NOT NULL default '', `module_type` varchar(100) NOT NULL default '', `data` varchar(255) default NULL, `timestamp` datetime NOT NULL default '1970-01-01 00:00:00',