[Openvas-commits] r12058 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 9 08:04:02 CET 2011


Author: mattm
Date: 2011-11-09 08:03:57 +0100 (Wed, 09 Nov 2011)
New Revision: 12058

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/manage_sql.c
Log:
	* src/manage_sql.c (create_tables): Add index results_by_host.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2011-11-08 18:39:04 UTC (rev 12057)
+++ trunk/openvas-manager/ChangeLog	2011-11-09 07:03:57 UTC (rev 12058)
@@ -1,3 +1,7 @@
+2011-11-09  Matthew Mundell <matthew.mundell at greenbone.net>
+
+	* src/manage_sql.c (create_tables): Add index results_by_host.
+
 2011-11-08  Matthew Mundell <matthew.mundell at greenbone.net>
 
 	Include override active state in MODIFY_OVERRIDE and CREATE_OVERRIDE.

Modified: trunk/openvas-manager/src/manage_sql.c
===================================================================
--- trunk/openvas-manager/src/manage_sql.c	2011-11-08 18:39:04 UTC (rev 12057)
+++ trunk/openvas-manager/src/manage_sql.c	2011-11-09 07:03:57 UTC (rev 12058)
@@ -1365,6 +1365,7 @@
   sql ("CREATE INDEX IF NOT EXISTS report_results_by_result ON report_results (result);");
   sql ("CREATE TABLE IF NOT EXISTS reports (id INTEGER PRIMARY KEY, uuid, owner INTEGER, hidden INTEGER, task INTEGER, date INTEGER, start_time, end_time, nbefile, comment, scan_run_status INTEGER, slave_progress, slave_task_uuid);");
   sql ("CREATE TABLE IF NOT EXISTS results (id INTEGER PRIMARY KEY, uuid, task INTEGER, subnet, host, port, nvt, type, description)");
+  sql ("CREATE INDEX IF NOT EXISTS results_by_host ON results (host);");
   sql ("CREATE INDEX IF NOT EXISTS results_by_task ON results (task);");
   sql ("CREATE INDEX IF NOT EXISTS results_by_type ON results (type);");
   sql ("CREATE TABLE IF NOT EXISTS schedules (id INTEGER PRIMARY KEY, uuid, owner INTEGER, name, comment, first_time, period, period_months, duration);");



More information about the Openvas-commits mailing list