[Openvas-commits] r9381 - in trunk/openvas-manager: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Nov 10 13:49:22 CET 2010
Author: mattm
Date: 2010-11-10 13:49:20 +0100 (Wed, 10 Nov 2010)
New Revision: 9381
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/src/manage_sql.c
Log:
* src/manage_sql.c (create_tables): Add a task index for table results.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2010-11-10 12:18:12 UTC (rev 9380)
+++ trunk/openvas-manager/ChangeLog 2010-11-10 12:49:20 UTC (rev 9381)
@@ -1,3 +1,7 @@
+2010-11-10 Matthew Mundell <matthew.mundell at greenbone.net>
+
+ * src/manage_sql.c (create_tables): Add a task index for table results.
+
2010-11-09 Matthew Mundell <matthew.mundell at greenbone.net>
Create LSC credential packages on every GET_LSC_CREDENTIAL, instead of
Modified: trunk/openvas-manager/src/manage_sql.c
===================================================================
--- trunk/openvas-manager/src/manage_sql.c 2010-11-10 12:18:12 UTC (rev 9380)
+++ trunk/openvas-manager/src/manage_sql.c 2010-11-10 12:49:20 UTC (rev 9381)
@@ -801,6 +801,7 @@
sql ("CREATE TABLE IF NOT EXISTS report_results (id INTEGER PRIMARY KEY, report INTEGER, result INTEGER);");
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_task ON results (task);");
sql ("CREATE TABLE IF NOT EXISTS schedules (id INTEGER PRIMARY KEY, uuid, owner INTEGER, name, comment, first_time, period, period_months, duration);");
sql ("CREATE TABLE IF NOT EXISTS slaves (id INTEGER PRIMARY KEY, uuid, owner INTEGER, name, comment, host, port, login, password);");
sql ("CREATE TABLE IF NOT EXISTS targets (id INTEGER PRIMARY KEY, uuid UNIQUE, owner INTEGER, name, hosts, comment, lsc_credential INTEGER);");
More information about the Openvas-commits
mailing list