[Bio] / Sprout / LoadSproutTables.pl Repository:
ViewVC logotype

Diff of /Sprout/LoadSproutTables.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15, Wed Dec 7 01:19:00 2005 UTC revision 1.16, Thu Dec 8 17:56:19 2005 UTC
# Line 227  Line 227 
227          my $dbuser = $FIG_Config::dbuser;          my $dbuser = $FIG_Config::dbuser;
228          Trace("Dropping old database (failure is okay).") if T(2);          Trace("Dropping old database (failure is okay).") if T(2);
229          system("dropdb -p $dbport -U $dbuser $db");          system("dropdb -p $dbport -U $dbuser $db");
230          Trace("Dropping old database (failure is okay).") if T(2);          Trace("Creating new database.") if T(2);
231          &FIG::run("createdb -p $dbport -U $dbuser $db");          &FIG::run("createdb -p $dbport -U $dbuser $db");
232      } elsif ($FIG_Config::dbms eq "mysql") {      } elsif ($FIG_Config::dbms eq "mysql") {
233          Trace("Dropping old database (failure is okay).") if T(2);          Trace("Dropping old database (failure is okay).") if T(2);
234          system("mysqladmin -u $FIG_Config::dbuser -p drop $db");          system("mysqladmin -u $FIG_Config::dbuser -p drop $db");
235          &FIG::run("mysqladmin -u $FIG_Config::dbuser -p create $db");          &FIG::run("mysqladmin -u $FIG_Config::dbuser -p create $db");
236          Trace("Dropping old database (failure is okay).") if T(2);          Trace("Creating new database.") if T(2);
237      }      }
   
238  }  }
239  # Create the sprout loader object. Note that the Sprout object does not  # Create the sprout loader object. Note that the Sprout object does not
240  # open the database unless the "dbLoad" option is turned on.  # open the database unless the "dbLoad" option is turned on.

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3