gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/deb-specific db-upgrade.pl,1.46,1.47


From: gsmet
Subject: [Gforge-commits] gforge/deb-specific db-upgrade.pl,1.46,1.47
Date: Fri, 30 Jan 2004 08:13:42 -0600

Update of /cvsroot/gforge/gforge/deb-specific
In directory db.perdue.net:/tmp/cvs-serv15231/deb-specific

Modified Files:
        db-upgrade.pl 
Log Message:
added default value (0) for count and open_count in artifact_counts_agg

Index: db-upgrade.pl
===================================================================
RCS file: /cvsroot/gforge/gforge/deb-specific/db-upgrade.pl,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- db-upgrade.pl       17 Jan 2004 20:27:27 -0000      1.46
+++ db-upgrade.pl       30 Jan 2004 14:13:40 -0000      1.47
@@ -1409,6 +1409,26 @@
        debug "Committing." ;
        $dbh->commit () ;
     }
+    
+    $version = &get_db_version ;
+    $target = "3.2.1-0+3" ;
+    if (is_lesser $version, $target) {
+       debug "Upgrading with 20040130.sql" ; 
+
+       @reqlist = @{ &parse_sql_file ("/usr/lib/gforge/db/20040130.sql") } ;
+       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 $action went well and smoothly.  That's 
cool." ;
     debug "Please enjoy using Gforge." ;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]