[evolvis-commits] r17513: database field for the extratabs plugin to handle tooltips

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Sep 2 12:35:44 CEST 2011


Author: mirabilos
Date: 2011-09-02 12:35:44 +0200 (Fri, 02 Sep 2011)
New Revision: 17513

Added:
   branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/db/20110902-add_tooltip_field.sql
Modified:
   branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/bin/db-upgrade.pl
Log:
database field for the extratabs plugin to handle tooltips


Modified: branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/bin/db-upgrade.pl
===================================================================
--- branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/bin/db-upgrade.pl	2011-09-02 10:33:03 UTC (rev 17512)
+++ branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/bin/db-upgrade.pl	2011-09-02 10:35:44 UTC (rev 17513)
@@ -98,6 +98,32 @@
 	$dbh->commit () ;
     }
 
+
+    $version = &get_db_version ;
+    $target = "0.2+evolvis1" ;
+    if (is_lesser $version, $target) {
+	my @filelist = ( "/usr/share/gforge/plugins/$pluginname/db/20110902-add_tooltip_field.sql" ) ;
+	
+	foreach my $file (@filelist) {
+	    debug "Processing $file" ;
+	    @reqlist = @{ &parse_sql_file ($file) } ;
+	    
+	    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." ;
 

Added: branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/db/20110902-add_tooltip_field.sql
===================================================================
--- branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/db/20110902-add_tooltip_field.sql	                        (rev 0)
+++ branches/ev48fixes/plugins/fusionforge-plugin-extratabs/data/usr/share/gforge/plugins/extratabs/db/20110902-add_tooltip_field.sql	2011-09-02 10:35:44 UTC (rev 17513)
@@ -0,0 +1 @@
+ALTER TABLE plugin_extratabs_main ADD COLUMN tooltip TEXT;



More information about the evolvis-commits mailing list