diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9511939865..94640ab8bb 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-10-20 Sancho Lerena + + * pandoradb.sql + extras/pandoradb_migrate_v3.1_to_v3.2.sql: TEXT type for some fields + with small length now with the HTML encoding. + 2010-10-20 Dario Rodriguez * godmode/servers/modificar_server.php: Disable change name of server diff --git a/pandora_console/extras/pandoradb_migrate_v3.1_to_v3.2.sql b/pandora_console/extras/pandoradb_migrate_v3.1_to_v3.2.sql index 590cc7fb64..8eb83a6adf 100644 --- a/pandora_console/extras/pandoradb_migrate_v3.1_to_v3.2.sql +++ b/pandora_console/extras/pandoradb_migrate_v3.1_to_v3.2.sql @@ -165,3 +165,6 @@ ALTER TABLE trecon_task ADD COLUMN `field3` varchar(250) NOT NULL default ''; ALTER TABLE trecon_task ADD COLUMN `field4` varchar(250) NOT NULL default ''; ALTER TABLE trecon_task ADD FOREIGN KEY (`id_recon_script`) REFERENCES trecon_script(`id_recon_script`) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE tagente_modulo MODIFY `descripcion` TEXT NOT NULL default ''; +ALTER TABLE tagente_modulo MODIFY `tcp_send` TEXT default ''; +ALTER TABLE tagente_modulo MODIFY `tcp_rcv` TEXT default ''; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index 04179d72df..93d82fdd67 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -144,15 +144,15 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` ( `id_agente_modulo` int(10) unsigned NOT NULL auto_increment, `id_agente` int(10) unsigned NOT NULL default '0', `id_tipo_modulo` smallint(5) NOT NULL default '0', - `descripcion` varchar(100) NOT NULL default '', + `descripcion` TEXT NOT NULL default '', `nombre` varchar(100) NOT NULL default '', `id_policy_module` INTEGER unsigned NOT NULL default '0', `max` bigint(20) default '0', `min` bigint(20) default '0', `module_interval` int(4) unsigned default '0', `tcp_port` int(4) unsigned default '0', - `tcp_send` varchar(255) default '', - `tcp_rcv` varchar(255) default '', + `tcp_send` TEXT default '', + `tcp_rcv` TEXT default '', `snmp_community` varchar(100) default '', `snmp_oid` varchar(255) default '0', `ip_target` varchar(100) default '',