[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/deb-specific db-upgrade.pl,1.58,1.59
From: |
cbayle |
Subject: |
[Gforge-commits] gforge/deb-specific db-upgrade.pl,1.58,1.59 |
Date: |
Thu, 23 Sep 2004 16:48:29 -0500 |
Update of /cvsroot/gforge/gforge/deb-specific
In directory db.perdue.net:/tmp/cvs-serv21473/deb-specific
Modified Files:
db-upgrade.pl
Log Message:
Added the run of db/2004*.php scripts
Index: db-upgrade.pl
===================================================================
RCS file: /cvsroot/gforge/gforge/deb-specific/db-upgrade.pl,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- db-upgrade.pl 12 Sep 2004 23:17:39 -0000 1.58
+++ db-upgrade.pl 23 Sep 2004 21:48:27 -0000 1.59
@@ -1611,6 +1611,33 @@
$dbh->commit () ;
}
+ $version = &get_db_version ;
+ $target = "3.3.0-2+1" ;
+ if (&is_lesser ($version, $target)) {
+ &debug ("Upgrading with migrateforum.php") ;
+ if (system("/usr/lib/gforge/db/20040826_migrateforum.php -d
include_path=/usr/share/gforge/:/usr/share/gforge/www/include")){
+ &update_db_version ($target) ;
+ &debug ("Committing.") ;
+ $dbh->commit () ;
+ } else {
+ exit 1;
+ }
+ }
+
+ $version = &get_db_version ;
+ $target = "3.3.0-2+2" ;
+ if (&is_lesser ($version, $target)) {
+ &debug ("Upgrading with migraterbac.php") ;
+ if (system("/usr/lib/gforge/db/20040826_migraterbac.php -d
include_path=/usr/share/gforge/:/usr/share/gforge/www/include")){
+ &update_db_version ($target) ;
+ &debug ("Committing.") ;
+ $dbh->commit () ;
+ } else {
+ exit 1;
+ }
+ }
+
+
&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.58,1.59,
cbayle <=
- Prev by Date:
[Gforge-commits] gforge/debian changelog,1.384,1.385
- Next by Date:
[Gforge-commits] gforge/common/tracker ArtifactFile.class, 1.9, 1.10 ArtifactType.class, 1.23, 1.24
- Previous by thread:
[Gforge-commits] gforge/debian changelog,1.384,1.385
- Next by thread:
[Gforge-commits] gforge/common/tracker ArtifactFile.class, 1.9, 1.10 ArtifactType.class, 1.23, 1.24
- Index(es):