Author: mattm
Date: 2016-10-12 17:03:27 +0200 (Wed, 12 Oct 2016)
New Revision: 26390

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/tools/openvas-migrate-to-postgres.in
Log:
        * tools/openvas-migrate-to-postgres.in: Convert tabs to spaces.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog     2016-10-12 14:48:33 UTC (rev 26389)
+++ trunk/openvas-manager/ChangeLog     2016-10-12 15:03:27 UTC (rev 26390)
@@ -1,5 +1,9 @@
 2016-10-12  Matthew Mundell <matthew.mund...@greenbone.net>
 
+       * tools/openvas-migrate-to-postgres.in: Convert tabs to spaces.
+
+2016-10-12  Matthew Mundell <matthew.mund...@greenbone.net>
+
        * tools/openvas-migrate-to-postgres.in (migrate): Check if already at
        the version.
        (create_migrate_clean): New function.

Modified: trunk/openvas-manager/tools/openvas-migrate-to-postgres.in
===================================================================
--- trunk/openvas-manager/tools/openvas-migrate-to-postgres.in  2016-10-12 
14:48:33 UTC (rev 26389)
+++ trunk/openvas-manager/tools/openvas-migrate-to-postgres.in  2016-10-12 
15:03:27 UTC (rev 26390)
@@ -1029,7 +1029,7 @@
   if [ $# -ne 1 ]
   then
     log_notice "Internal Error: copy_data must have an arg"
-       exit 1
+    exit 1
   fi
 
   log_info "Copying SQLite3 data:"
@@ -1054,7 +1054,7 @@
   if [ $? -ne 0 ]
   then
     log_notice "Internal Error: tables being copied do not match tables in 
SQLite db"
-       exit 1
+    exit 1
   fi
 
   log_info "Copying SQLite3 data: copying"
@@ -1290,9 +1290,9 @@
 
 migrate_157_to_158 () {
   pg "ALTER TABLE configs ADD COLUMN scanner INTEGER"
-        " REFERENCES scanners (id) ON DELETE RESTRICT;"
+     " REFERENCES scanners (id) ON DELETE RESTRICT;"
   pg "ALTER TABLE configs_trash ADD COLUMN scanner INTEGER"
-        " REFERENCES scanners (id) ON DELETE RESTRICT;"
+     " REFERENCES scanners (id) ON DELETE RESTRICT;"
 }
 
 TABLES_158=$TABLES_157
@@ -1441,7 +1441,7 @@
   if [ $# -ne 2 ]
   then
     log_notice "Internal Error: migrate must have two args"
-       exit 1
+    exit 1
   fi
 
   log_info "Migrating schema from $1 to $TO."

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

Reply via email to