[Fusionforge-commits] r14859 - in trunk: . src/deb-specific

Roland Mas lolando at fusionforge.org
Thu Nov 17 20:55:22 CET 2011


Author: lolando
Date: 2011-11-17 20:55:21 +0100 (Thu, 17 Nov 2011)
New Revision: 14859

Modified:
   trunk/
   trunk/src/deb-specific/old-db-upgrade.pl
Log:
Drop debian_meta_data table

Modified: trunk/src/deb-specific/old-db-upgrade.pl
===================================================================
--- trunk/src/deb-specific/old-db-upgrade.pl	2011-11-17 19:55:12 UTC (rev 14858)
+++ trunk/src/deb-specific/old-db-upgrade.pl	2011-11-17 19:55:21 UTC (rev 14859)
@@ -43,6 +43,7 @@
 	&debug ("Database maintenance already moved to unified script,") ;
 	&debug ("nothing to do in old upgrader.") ;
     }
+
     elsif (! &table_exists ($dbh, 'groups')) {	# No 'groups' table
 	# Installing SF 2.6 from scratch
 	&debug ("Creating initial Sourceforge database from files.") ;
@@ -1995,6 +1996,14 @@
         $dbh->commit () ;
     }
 
+    $version = &get_db_version ;
+    if ($version eq "5.1.51-11") {
+	&debug ("Dropping debian_meta_data table.") ;
+	&drop_table_if_exists ($dbh, 'debian_meta_data') ;
+        &debug ("...OK.") ;
+        $dbh->commit () ;
+    }
+
     ########################### INSERT HERE #################################
 
     # There should be a commit at the end of every block above.




More information about the Fusionforge-commits mailing list