Author: mattm
Date: 2016-10-13 10:07:26 +0200 (Thu, 13 Oct 2016)
New Revision: 26396

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/manage_migrators.c
Log:
        * src/manage_migrators.c (migrate_167_to_168): Delete task_preferences
        too.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog     2016-10-13 08:06:16 UTC (rev 26395)
+++ trunk/openvas-manager/ChangeLog     2016-10-13 08:07:26 UTC (rev 26396)
@@ -1,5 +1,10 @@
-2016-10-12  Matthew Mundell <matthew.mund...@greenbone.net>
+2016-10-13  Matthew Mundell <matthew.mund...@greenbone.net>
 
+       * src/manage_migrators.c (migrate_167_to_168): Delete task_preferences
+       too.
+
+2016-10-13  Matthew Mundell <matthew.mund...@greenbone.net>
+
        * src/manage_migrators.c (migrate_156_to_157, migrate_157_to_158)
        (migrate_164_to_165, migrate_172_to_173): Neaten comments.
 

Modified: trunk/openvas-manager/src/manage_migrators.c
===================================================================
--- trunk/openvas-manager/src/manage_migrators.c        2016-10-13 08:06:16 UTC 
(rev 26395)
+++ trunk/openvas-manager/src/manage_migrators.c        2016-10-13 08:07:26 UTC 
(rev 26396)
@@ -12535,6 +12535,11 @@
        "               WHERE uuid = '%s');",
        uuid);
 
+  sql ("DELETE FROM task_preferences"
+       " WHERE task = (SELECT id FROM tasks"
+       "               WHERE uuid = '%s');",
+       uuid);
+
   sql ("DELETE FROM tasks WHERE uuid = '%s';",
        uuid);
 

_______________________________________________
Openvas-commits mailing list
Openvas-commits@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits

Reply via email to