[Openvas-commits] r6258 - in trunk/openvas-manager: . doc

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Dec 25 21:29:04 CET 2009


Author: mattm
Date: 2009-12-25 21:29:04 +0100 (Fri, 25 Dec 2009)
New Revision: 6258

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/doc/db_postgres.sql
Log:
	* doc/db_postgres.sql (nvt_selectors): Add id field.
	(targets): Add id field.
	(tasks): Describe description.  Refer to config and target by id.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-12-25 20:19:21 UTC (rev 6257)
+++ trunk/openvas-manager/ChangeLog	2009-12-25 20:29:04 UTC (rev 6258)
@@ -1,5 +1,11 @@
 2009-12-25  Matthew Mundell <matthew.mundell at intevation.de>
 
+	* doc/db_postgres.sql (nvt_selectors): Add id field.
+	(targets): Add id field.
+	(tasks): Describe description.  Refer to config and target by id.
+
+2009-12-25  Matthew Mundell <matthew.mundell at intevation.de>
+
 	* doc/db_postgres.sql (agents, escalator_condition_data)
 	(escalator_event_data, escalator_method_data, escalators)
 	(task_files, task_escalators, nvt_preferences): New tables.

Modified: trunk/openvas-manager/doc/db_postgres.sql
===================================================================
--- trunk/openvas-manager/doc/db_postgres.sql	2009-12-25 20:19:21 UTC (rev 6257)
+++ trunk/openvas-manager/doc/db_postgres.sql	2009-12-25 20:29:04 UTC (rev 6258)
@@ -43,6 +43,7 @@
 	password text);
 
 CREATE TABLE nvt_selectors (
+	id integer PRIMARY KEY,
     name text,
 	exclude boolean,
 	type integer,
@@ -50,7 +51,8 @@
 	family text);
 
 CREATE TABLE targets (
-	name text PRIMARY KEY,
+	id integer PRIMARY KEY,
+	name text UNIQUE NOT NULL,
 	hosts text,
 	comment text,
 	lsc_credential integer REFERENCES lsc_credentials (id) ON DELETE RESTRICT);
@@ -77,13 +79,13 @@
 	name text,
 	hidden integer,
 	comment text,
-	description text,
+	description text, -- RC file
 	owner integer REFERENCES users (id) ON DELETE RESTRICT,
 	run_status integer,
 	start_time date,
 	end_time date,
-	config integer REFERENCES configs (name) ON DELETE RESTRICT,
-	target integer REFERENCES targets (name) ON DELETE RESTRICT);
+	config integer REFERENCES configs (id) ON DELETE RESTRICT,
+	target integer REFERENCES targets (id) ON DELETE RESTRICT);
 
 CREATE TABLE task_files (
 	id integer PRIMARY KEY,



More information about the Openvas-commits mailing list