Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove useless stuff

git-svn-id: svn+ssh://scm.fusionforge.org/srv/svn/fusionforge/trunk@12880 9d84d37e-dcb1-4aad-b103-6f3d92f53bf6
  • Loading branch information...
commit 7d7e158236fb030562d047e300ff2766ce200652 1 parent 70a3a08
olberger authored

Showing 1 changed file with 22 additions and 24 deletions. Show diff stats Hide diff stats

  1. +22 24 src/plugins/authopenid/bin/db-upgrade.pl
46 src/plugins/authopenid/bin/db-upgrade.pl
@@ -69,32 +69,30 @@
69 69 $dbh->commit () ;
70 70 }
71 71
72   - $version = &get_db_version ;
73   - $target = "0.2" ;
74   - if (is_lesser $version, $target) {
75   - debug "Adding local data." ;
76   -
77   - do "/etc/gforge/local.pl" or die "Cannot read /etc/gforge/local.pl" ;
78   -
79   - my $ip_address = qx/host $domain_name | awk '{print \}'/ ;
80   -
81   - @reqlist = (
82   - "INSERT INTO plugin_".$pluginname."_sample_data (domain, ip_address) VALUES ('$domain_name', '$ip_address')",
83   - ) ;
  72 +
  73 +# $version = &get_db_version ;
  74 +# $target = "0.2" ;
  75 +# if (is_lesser $version, $target) {
  76 +# my @filelist = ( "/usr/share/gforge/plugins/$pluginname/db/20101203-add_type_for_iframe.sql" ) ;
84 77
85   - foreach my $s (@reqlist) {
86   - $query = $s ;
87   - # debug $query ;
88   - $sth = $dbh->prepare ($query) ;
89   - $sth->execute () ;
90   - $sth->finish () ;
91   - }
92   - @reqlist = () ;
  78 +# foreach my $file (@filelist) {
  79 +# debug "Processing $file" ;
  80 +# @reqlist = @{ &parse_sql_file ($file) } ;
  81 +
  82 +# foreach my $s (@reqlist) {
  83 +# $query = $s ;
  84 +# # debug $query ;
  85 +# $sth = $dbh->prepare ($query) ;
  86 +# $sth->execute () ;
  87 +# $sth->finish () ;
  88 +# }
  89 +# }
  90 +# @reqlist = () ;
93 91
94   - &update_db_version ($target) ;
95   - debug "Committing." ;
96   - $dbh->commit () ;
97   - }
  92 +# &update_db_version ($target) ;
  93 +# debug "Committing." ;
  94 +# $dbh->commit () ;
  95 +# }
98 96
99 97 debug "It seems your database install/upgrade went well and smoothly. That's cool." ;
100 98 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.