Skip to content
Browse files

Remove useless stuff

git-svn-id: svn+ssh://scm.fusionforge.org/srv/svn/fusionforge/trunk@12880 9d84d37e-dcb1-4aad-b103-6f3d92f53bf6
  • Loading branch information...
1 parent 70a3a08 commit 7d7e158236fb030562d047e300ff2766ce200652 olberger committed Mar 21, 2011
Showing with 22 additions and 24 deletions.
  1. +22 −24 src/plugins/authopenid/bin/db-upgrade.pl
View
46 src/plugins/authopenid/bin/db-upgrade.pl
@@ -69,32 +69,30 @@
$dbh->commit () ;
}
- $version = &get_db_version ;
- $target = "0.2" ;
- if (is_lesser $version, $target) {
- debug "Adding local data." ;
-
- do "/etc/gforge/local.pl" or die "Cannot read /etc/gforge/local.pl" ;
-
- my $ip_address = qx/host $domain_name | awk '{print \}'/ ;
-
- @reqlist = (
- "INSERT INTO plugin_".$pluginname."_sample_data (domain, ip_address) VALUES ('$domain_name', '$ip_address')",
- ) ;
+
+# $version = &get_db_version ;
+# $target = "0.2" ;
+# if (is_lesser $version, $target) {
+# my @filelist = ( "/usr/share/gforge/plugins/$pluginname/db/20101203-add_type_for_iframe.sql" ) ;
- foreach my $s (@reqlist) {
- $query = $s ;
- # debug $query ;
- $sth = $dbh->prepare ($query) ;
- $sth->execute () ;
- $sth->finish () ;
- }
- @reqlist = () ;
+# 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 () ;
- }
+# &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." ;

0 comments on commit 7d7e158

Please sign in to comment.
Something went wrong with that request. Please try again.