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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Dec 24 19:29:53 CET 2009


Author: mattm
Date: 2009-12-24 19:29:52 +0100 (Thu, 24 Dec 2009)
New Revision: 6251

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/tasks_sql.h
Log:
	* src/tasks_sql.h (create_tables): Sort better.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-12-24 18:25:38 UTC (rev 6250)
+++ trunk/openvas-manager/ChangeLog	2009-12-24 18:29:52 UTC (rev 6251)
@@ -1,5 +1,9 @@
 2009-12-24  Matthew Mundell <matthew.mundell at intevation.de>
 
+	* src/tasks_sql.h (create_tables): Sort better.
+
+2009-12-24  Matthew Mundell <matthew.mundell at intevation.de>
+
 	Switch the global OMP array variables to GPtrArrays.
 
 	* src/tasks_sql.h (member): Switch array to GPtrArray.

Modified: trunk/openvas-manager/src/tasks_sql.h
===================================================================
--- trunk/openvas-manager/src/tasks_sql.h	2009-12-24 18:25:38 UTC (rev 6250)
+++ trunk/openvas-manager/src/tasks_sql.h	2009-12-24 18:29:52 UTC (rev 6251)
@@ -454,10 +454,10 @@
 static void
 create_tables ()
 {
+  sql ("CREATE TABLE IF NOT EXISTS agents (id INTEGER PRIMARY KEY, name UNIQUE, comment, installer TEXT, howto_install TEXT, howto_use TEXT);");
   sql ("CREATE TABLE IF NOT EXISTS config_preferences (id INTEGER PRIMARY KEY, config INTEGER, type, name, value);");
   sql ("CREATE TABLE IF NOT EXISTS configs (id INTEGER PRIMARY KEY, name UNIQUE, nvt_selector, comment, family_count INTEGER, nvt_count INTEGER, families_growing INTEGER, nvts_growing INTEGER);");
   sql ("CREATE TABLE IF NOT EXISTS lsc_credentials (id INTEGER PRIMARY KEY, name, login, password, comment, public_key TEXT, private_key TEXT, rpm TEXT, deb TEXT, exe TEXT);");
-  sql ("CREATE TABLE IF NOT EXISTS agents (id INTEGER PRIMARY KEY, name UNIQUE, comment, installer TEXT, howto_install TEXT, howto_use TEXT);");
   sql ("CREATE TABLE IF NOT EXISTS meta    (id INTEGER PRIMARY KEY, name UNIQUE, value);");
   sql ("CREATE TABLE IF NOT EXISTS nvt_preferences (id INTEGER PRIMARY KEY, name, value);");
   /* nvt_selectors types: 0 all, 1 family, 2 NVT (NVT_SELECTOR_TYPE_* above). */



More information about the Openvas-commits mailing list