[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/deb-specific db-upgrade.pl,1.65,1.66
From: |
cbayle |
Subject: |
[Gforge-commits] gforge/deb-specific db-upgrade.pl,1.65,1.66 |
Date: |
Sat, 27 Nov 2004 16:43:15 -0600 |
Update of /cvsroot/gforge/gforge/deb-specific
In directory db.perdue.net:/tmp/cvs-serv22548/deb-specific
Modified Files:
db-upgrade.pl
Log Message:
Added 2 more sql files
Index: db-upgrade.pl
===================================================================
RCS file: /cvsroot/gforge/gforge/deb-specific/db-upgrade.pl,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- db-upgrade.pl 31 Oct 2004 14:18:02 -0000 1.65
+++ db-upgrade.pl 27 Nov 2004 22:43:12 -0000 1.66
@@ -1812,6 +1812,50 @@
$dbh->commit () ;
}
+ $version = &get_db_version ;
+ $target = "4.0.0-0+3" ;
+ # This is an exception, I reapply a modified version of 20040729.sql since
it was doing nothing
+ # the other call was deleted from this file
+ if (&is_lesser ($version, $target)) {
+ &debug ("Upgrading with 20041104.sql") ;
+
+ @reqlist = @{ &parse_sql_file ("/usr/lib/gforge/db/20041104.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 () ;
+ }
+
+ $version = &get_db_version ;
+ $target = "4.0.0-0+4" ;
+ # This is an exception, I reapply a modified version of 20040729.sql since
it was doing nothing
+ # the other call was deleted from this file
+ if (&is_lesser ($version, $target)) {
+ &debug ("Upgrading with 20041108.sql") ;
+
+ @reqlist = @{ &parse_sql_file ("/usr/lib/gforge/db/20041108.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.") ;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/deb-specific db-upgrade.pl,1.65,1.66,
cbayle <=
- Prev by Date:
[Gforge-commits] gforge/common/pm ProjectTask.class, 1.28, 1.29 ProjectTaskFactory.class, 1.6, 1.7
- Next by Date:
[Gforge-commits] gforge/www/include pre.php,1.32,1.33
- Previous by thread:
[Gforge-commits] gforge/common/pm ProjectTask.class, 1.28, 1.29 ProjectTaskFactory.class, 1.6, 1.7
- Next by thread:
[Gforge-commits] gforge/www/include pre.php,1.32,1.33
- Index(es):