[Koha-cvs] CVS: koha/updater updatedatabase,1.17,1.18

Paul POULAIN tipaul at users.sourceforge.net
Tue Sep 24 15:50:57 CEST 2002


Update of /cvsroot/koha/koha/updater
In directory usw-pr-cvs1:/tmp/cvs-serv21531

Modified Files:
	updatedatabase 
Log Message:
long WAS the road to 1.3.0...
coming VERY SOON NOW...
modifying installer and buildrelease to update the DB


Index: updatedatabase
===================================================================
RCS file: /cvsroot/koha/koha/updater/updatedatabase,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** updatedatabase	24 Sep 2002 12:57:35 -0000	1.17
--- updatedatabase	24 Sep 2002 13:50:55 -0000	1.18
***************
*** 189,192 ****
--- 189,193 ----
  #added so that reference items are not available for reserves...
      itemtypes=>{'notforloan' => 'smallint(6)'},
+     systempreferences =>{'explanation' => 'char(80)'},
  );
  
***************
*** 204,210 ****
  # Default system preferences
  my %defaultprefs=(
!     'autoMemberNum'=> '1',
!     'acquisitions'=> 'simple',
! );
  
  #-------------------
--- 205,212 ----
  # Default system preferences
  my %defaultprefs=(
! 		  'autoMemberNum'=> ['1','1 or else. If 1, Barcode is auto-calculated'],
! 		  'acquisitions'=> ['simple','normal or simple : will use acquisition system found in directory acqui.simple or acquisition'],
! 		  'template' => ['default','template default name']
! 		  );
  
  #-------------------
***************
*** 389,397 ****
      unless ($sth->rows) {
  	print "Adding system preference item $prefitem with value " .
!         	$defaultprefs{$prefitem} ."\n";
          $sti=$dbh->prepare("
! 	  insert into systempreferences (variable, value) 
! 	  values (?,?)");
!         $sti->execute($prefitem,$defaultprefs{$prefitem});
      } # unless
  } # foreach
--- 391,399 ----
      unless ($sth->rows) {
  	print "Adding system preference item $prefitem with value " .
!         	$defaultprefs{$prefitem}[0] ."\n";
          $sti=$dbh->prepare("
! 	  insert into systempreferences (variable, value,explanation) 
! 	  values (?,?,?)");
!         $sti->execute($prefitem,$defaultprefs{$prefitem}[0],$defaultprefs{$prefitem}[1]);
      } # unless
  } # foreach
***************
*** 404,407 ****
--- 406,414 ----
  
  # $Log$
+ # Revision 1.18  2002/09/24 13:50:55  tipaul
+ # long WAS the road to 1.3.0...
+ # coming VERY SOON NOW...
+ # modifying installer and buildrelease to update the DB
+ #
  # Revision 1.17  2002/09/24 12:57:35  tipaul
  # long WAS the road to 1.3.0...





More information about the Koha-cvs mailing list