[Fusionforge-commits] FusionForge branch Branch_5_2 updated. be083e628d9835085e50f747018ea90ab970ce86

Roland Mas lolando at fusionforge.org
Fri Apr 26 15:32:34 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_2 has been updated
       via  be083e628d9835085e50f747018ea90ab970ce86 (commit)
      from  1dc92b0369fe13dfc0252d55149d18170d9bbe48 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit be083e628d9835085e50f747018ea90ab970ce86
Author: Roland Mas <lolando at debian.org>
Date:   Fri Apr 26 15:32:24 2013 +0200

    Fixed database management scripts for plugin-blocks

diff --git a/src/plugins/blocks/bin/db-delete.pl b/src/plugins/blocks/bin/db-delete.pl
index 96ec551..995746d 100755
--- a/src/plugins/blocks/bin/db-delete.pl
+++ b/src/plugins/blocks/bin/db-delete.pl
@@ -72,7 +72,7 @@ eval {
     }
     $sth->finish () ;
 
-    $query = "SELECT relname FROM pg_class WHERE relname LIKE '$pattern' AND relkind='s'" ;
+    $query = "SELECT relname FROM pg_class WHERE relname LIKE '$pattern' AND relkind='S'" ;
     $sth = $dbh->prepare ($query) ;
     $sth->execute () ;
     while (@array = $sth->fetchrow_array ()) {
diff --git a/src/plugins/blocks/bin/db-upgrade.pl b/src/plugins/blocks/bin/db-upgrade.pl
index 08be515..5b1809f 100755
--- a/src/plugins/blocks/bin/db-upgrade.pl
+++ b/src/plugins/blocks/bin/db-upgrade.pl
@@ -69,31 +69,6 @@ eval {
 	$dbh->commit () ;
     }
     
-    $version = &get_db_version ;
-    $target = "0.2" ;
-    if (is_lesser $version, $target) {
-	debug "Adding local data." ;
-	
-	my $ip_address = qx/host $domain_name | awk '{print \}'/ ;
-	
-	@reqlist = (
-		    "INSERT INTO plugin_".$pluginname."_sample_data (domain, ip_address) VALUES ('$domain_name', '$ip_address')",
-		    ) ;
-	
-	foreach my $s (@reqlist) {
-	    $query = $s ;
-	    # debug $query ;
-	    $sth = $dbh->prepare ($query) ;
-	    $sth->execute () ;
-	    $sth->finish () ;
-	}
-	@reqlist = () ;
-	
-	&update_db_version ($target) ;
-	debug "Committing." ;
-	$dbh->commit () ;
-    }
-
     debug "It seems your database install/upgrade went well and smoothly.  That's cool." ;
     debug "Please enjoy using Debian GForge." ;
 

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/blocks/bin/db-delete.pl  |    2 +-
 src/plugins/blocks/bin/db-upgrade.pl |   25 -------------------------
 2 files changed, 1 insertion(+), 26 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list