Author: mattm
Date: 2016-10-13 10:06:16 +0200 (Thu, 13 Oct 2016)
New Revision: 26395

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/manage_migrators.c
Log:
        * 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/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog     2016-10-13 06:34:54 UTC (rev 26394)
+++ trunk/openvas-manager/ChangeLog     2016-10-13 08:06:16 UTC (rev 26395)
@@ -1,5 +1,10 @@
 2016-10-12  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.
+
+2016-10-12  Matthew Mundell <matthew.mund...@greenbone.net>
+
        * tools/openvas-migrate-to-postgres.in (cleanup_sqlite_db): Remove stray
        task preferences.  The C migrator migrate_167_to_168 is leaving one of
        these behind.  Remove escalator_condition_data_trash, which

Modified: trunk/openvas-manager/src/manage_migrators.c
===================================================================
--- trunk/openvas-manager/src/manage_migrators.c        2016-10-13 06:34:54 UTC 
(rev 26394)
+++ trunk/openvas-manager/src/manage_migrators.c        2016-10-13 08:06:16 UTC 
(rev 26395)
@@ -10787,7 +10787,7 @@
 
   /* Update the database. */
 
-  /* Add new columns to slaves tables */
+  /* Add new columns to slaves tables. */
   if (sql_is_sqlite3 ())
     {
       sql ("ALTER TABLE slaves ADD COLUMN credential INTEGER;");
@@ -10800,7 +10800,7 @@
   sql ("ALTER TABLE slaves_trash ADD COLUMN credential INTEGER;");
   sql ("ALTER TABLE slaves_trash ADD COLUMN credential_location INTEGER;");
 
-  /* Create new credentials */
+  /* Create new credentials. */
   init_iterator (&slaves,
                  "SELECT id, name, login, password, owner FROM slaves;");
 
@@ -10929,7 +10929,7 @@
     }
   cleanup_iterator (&slaves);
 
- /* Create new credentials for trashcan */
+  /* Create new credentials for trashcan. */
   init_iterator (&slaves,
                  "SELECT id, name, login, password, owner"
                  " FROM slaves_trash;");
@@ -11119,7 +11119,7 @@
 
   /* Update the database. */
 
-  /* Add new column to configs tables */
+  /* Add new column to configs tables. */
   if (sql_is_sqlite3 ())
     {
       sql ("ALTER TABLE configs ADD COLUMN scanner INTEGER;");
@@ -11168,7 +11168,7 @@
 
   /* Update the database. */
 
-  /* Add new columns to scanners tables */
+  /* Add new columns to scanners tables. */
   if (sql_is_sqlite3 ())
     {
       sql ("ALTER TABLE scanners ADD COLUMN credential INTEGER;");
@@ -12050,14 +12050,14 @@
   /* Update database */
 
   /* Add hr_name column to config_preferences table
-   *  and initialize it with name for OSP results */
+   * and initialize it with name for OSP results. */
   sql ("ALTER TABLE config_preferences ADD COLUMN hr_name TEXT;");
   sql ("UPDATE config_preferences"
        " SET hr_name = name"
        " WHERE type != 'SERVER_PREFS' AND type != 'PLUGINS_PREFS';");
 
   /* Add hr_name column to config_preferences_trash table
-   *  and initialize it with name for OSP results */
+   * and initialize it with name for OSP results. */
   sql ("ALTER TABLE config_preferences_trash ADD COLUMN hr_name TEXT;");
   sql ("UPDATE config_preferences_trash"
        " SET hr_name = name"
@@ -13008,7 +13008,7 @@
       return -1;
     }
 
-  /* Remove unused columns */
+  /* Remove unused columns. */
   if (sql_is_sqlite3 ())
     {
       sql ("ALTER TABLE nvts RENAME TO nvts_172;");

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

Reply via email to