From 0dad2f9075014e9b54ac24091f57a1faa04aada2 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Fri, 15 Oct 2010 13:03:03 +0000 Subject: [PATCH] 2010-10-15 Ramon Novoa * pandoradb.sql: Added support for recon scripts. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3412 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/pandoradb.sql | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 37eed1907f..98f3faf3ab 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2010-10-15 Ramon Novoa + + * pandoradb.sql: Added support for recon scripts. + 2010-10-15 Sergio Martin * godmode/alerts/alert_list.list.php: Improved the size of the diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index eea2199bf3..0118f43db9 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -583,6 +583,14 @@ CREATE TABLE IF NOT EXISTS `tperfil` ( PRIMARY KEY (`id_perfil`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE IF NOT EXISTS `trecon_script` ( + `id_recon_script` int(10) NOT NULL auto_increment, + `name` varchar(100) default '', + `description` varchar(100) default '', + `script` varchar(250) default '', + PRIMARY KEY (`id_recon_script`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + CREATE TABLE IF NOT EXISTS `trecon_task` ( `id_rt` int(10) unsigned NOT NULL auto_increment, `name` varchar(100) NOT NULL default '', @@ -598,8 +606,15 @@ CREATE TABLE IF NOT EXISTS `trecon_task` ( `id_os` tinyint(4) NOT NULL default '0', `recon_ports` varchar(250) NOT NULL default '', `snmp_community` varchar(64) NOT NULL default 'public', + `id_recon_script` int(10), + `field1` varchar(250) NOT NULL default '', + `field2` varchar(250) NOT NULL default '', + `field3` varchar(250) NOT NULL default '', + `field4` varchar(250) NOT NULL default '', PRIMARY KEY (`id_rt`), - KEY `recon_task_daemon` (`id_recon_server`) + KEY `recon_task_daemon` (`id_recon_server`), + FOREIGN KEY (`id_recon_script`) REFERENCES trecon_script(`id_recon_script`) + ON UPDATE CASCADE ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;