6 # This script checks for required updates to the database.
8 # Part of the Koha Library Software www.koha.org
9 # Licensed under the GPL.
12 # - Would also be a good idea to offer to do a backup at this time...
14 # NOTE: If you do something more than once in here, make it table driven.
22 use C4::Context("/etc/koha.conf.tmp");
24 # FIXME - /etc/koha.conf might not exist, so shouldn't use
27 # FIXME - The user might be installing a new database, so can't rely
28 # on /etc/koha.conf anyway.
35 %existingtables, # tables already in database
39 $type, $null, $key, $default, $extra,
40 $prefitem, # preference item in systempreferences table
43 my $dbh = C4::Context->dbh;
48 # Tables to add if they don't exist
50 shelfcontents => "( shelfnumber int not null,
51 itemnumber int not null,
53 bookshelf => "( shelfnumber int auto_increment primary key,
54 shelfname char(255))",
55 z3950queue => "( id int auto_increment primary key,
64 identifier char(30))",
65 z3950results => "( id int auto_increment primary key,
75 branchrelations => "( branchcode varchar(4),
76 categorycode varchar(4))",
77 websites => "( websitenumber int(11) NOT NULL auto_increment,
78 biblionumber int(11) NOT NULL default '0',
82 PRIMARY KEY (websitenumber) )",
83 marcrecorddone => "( isbn char(40),
86 controlnumber char(40))",
87 uploadedmarc => "( id int(11) NOT NULL auto_increment PRIMARY KEY,
89 hidden smallint(6) default NULL,
90 name varchar(255) default NULL)",
91 ethnicity => "( code varchar(10) NOT NULL default '',
92 name varchar(255) default NULL,
93 PRIMARY KEY (code) )",
94 sessions => "( sessionID varchar(255) NOT NULL default '',
95 userid varchar(255) default NULL,
96 ip varchar(16) default NULL,
98 PRIMARY KEY (sessionID) )",
99 sessionqueries => "( sessionID varchar(255) NOT NULL default '',
100 userid char(100) NOT NULL default '',
101 ip char(18) NOT NULL default '',
102 url text NOT NULL default '' )",
103 bibliothesaurus => "( id bigint(20) NOT NULL auto_increment,
104 freelib char(255) NOT NULL default '',
105 stdlib char(255) NOT NULL default '',
106 category char(10) NOT NULL default '',
107 level tinyint(4) NOT NULL default '1',
108 hierarchy char(80) NOT NULL default '',
109 father bigint(20) NOT NULL default '',
111 KEY freelib (freelib),
113 KEY category (category),
114 KEY hierarchy (hierarchy)
117 bibid bigint(20) unsigned NOT NULL auto_increment,
118 biblionumber int(11) NOT NULL default '0',
119 datecreated date NOT NULL default '0000-00-00',
120 datemodified date default NULL,
121 origincode char(20) default NULL,
123 KEY origincode (origincode),
124 KEY biblionumber (biblionumber)
126 marc_blob_subfield => "(
127 blobidlink bigint(20) NOT NULL auto_increment,
128 subfieldvalue longtext NOT NULL,
129 PRIMARY KEY (blobidlink)
131 marc_subfield_structure => "(
132 tagfield char(3) NOT NULL default '',
133 tagsubfield char(1) NOT NULL default '',
134 liblibrarian char(255) NOT NULL default '',
135 libopac char(255) NOT NULL default '',
136 repeatable tinyint(4) NOT NULL default '0',
137 mandatory tinyint(4) NOT NULL default '0',
138 kohafield char(40) default NULL,
139 tab tinyint(1) default NULL,
140 authorised_value char(10) default NULL,
141 thesaurus_category char(10) default NULL,
142 value_builder char(80) default NULL,
143 PRIMARY KEY (tagfield,tagsubfield),
144 KEY kohafield (kohafield),
147 marc_subfield_table => "(
148 subfieldid bigint(20) unsigned NOT NULL auto_increment,
149 bibid bigint(20) unsigned NOT NULL default '0',
150 tag char(3) NOT NULL default '',
151 tagorder tinyint(4) NOT NULL default '1',
152 tag_indicator char(2) NOT NULL default '',
153 subfieldcode char(1) NOT NULL default '',
154 subfieldorder tinyint(4) NOT NULL default '1',
155 subfieldvalue varchar(255) default NULL,
156 valuebloblink bigint(20) default NULL,
157 PRIMARY KEY (subfieldid),
160 KEY tag_indicator (tag_indicator),
161 KEY subfieldorder (subfieldorder),
162 KEY subfieldcode (subfieldcode),
163 KEY subfieldvalue (subfieldvalue),
164 KEY tagorder (tagorder)
166 marc_tag_structure => "(
167 tagfield char(3) NOT NULL default '',
168 liblibrarian char(255) NOT NULL default '',
169 libopac char(255) NOT NULL default '',
170 repeatable tinyint(4) NOT NULL default '0',
171 mandatory tinyint(4) NOT NULL default '0',
172 authorised_value char(10) default NULL,
173 PRIMARY KEY (tagfield)
176 bibid bigint(20) NOT NULL default '0',
177 tag char(3) NOT NULL default '',
178 tagorder tinyint(4) NOT NULL default '1',
179 subfieldid char(1) NOT NULL default '',
180 subfieldorder tinyint(4) NOT NULL default '1',
181 word varchar(255) NOT NULL default '',
182 sndx_word varchar(255) NOT NULL default '',
185 KEY tagorder (tagorder),
186 KEY subfieldid (subfieldid),
187 KEY subfieldorder (subfieldorder),
189 KEY sndx_word (sndx_word)
191 marc_breeding => "( id bigint(20) NOT NULL auto_increment,
192 file varchar(80) NOT NULL default '',
193 isbn varchar(10) NOT NULL default '',
194 title varchar(128) default NULL,
195 author varchar(80) default NULL,
197 encoding varchar(40) default NULL,
202 authorised_values => "(id int(11) NOT NULL auto_increment,
203 category char(10) NOT NULL default '',
204 authorised_value char(80) NOT NULL default '',
209 userflags => "( bit int(11) NOT NULL default '0',
210 flag char(30), flagdesc char(255),
215 my %requirefields = (
216 biblio => { 'abstract' => 'text' },
217 deletedbiblio => { 'abstract' => 'text' },
219 'lccn' => 'char(25)',
220 'url' => 'varchar(255)',
223 deletedbiblioitems => {
224 'lccn' => 'char(25)',
225 'url' => 'varchar(255)',
228 branchtransfers => { 'datearrived' => 'datetime' },
229 statistics => { 'borrowernumber' => 'int(11)' },
231 'invoicedisc' => 'float(6,4)',
232 'nocalc' => 'int(11)'
235 'userid' => 'char(30)',
236 'password' => 'char(30)',
237 'flags' => 'int(11)',
238 'textmessaging' => 'varchar(30)'
240 aqorders => { 'budgetdate' => 'date' },
242 #added so that reference items are not available for reserves...
243 itemtypes => { 'notforloan' => 'smallint(6)' },
244 systempreferences => { 'explanation' => 'char(80)' },
245 z3950servers => { 'syntax' => 'char(80)' },
248 my %dropable_table = (
249 classification => 'classification',
250 multipart => 'multipart',
251 multivolume => 'multivolume',
252 newitems => 'newitems',
253 procedures => 'procedures',
254 publisher => 'publisher',
255 searchstats => 'searchstats',
256 serialissues => 'serialissues',
259 # The tabledata hash contains data that should be in the tables.
260 # The uniquefieldrequired hash entry is used to determine which (if any) fields
261 # must not exist in the table for this row to be inserted. If the
262 # uniquefieldrequired entry is already in the table, the existing data is not
268 uniquefieldrequired => 'bit',
270 flag => 'superlibrarian',
271 flagdesc => 'Access to all librarian functions',
275 uniquefieldrequired => 'bit',
278 flagdesc => 'Circulate books',
282 uniquefieldrequired => 'bit',
285 flagdesc => 'View Catalogue (Librarian Interface)',
289 uniquefieldrequired => 'bit',
291 flag => 'parameters',
292 flagdesc => 'Set Koha system paramters',
296 uniquefieldrequired => 'bit',
299 flagdesc => 'Add or modify borrowers',
303 uniquefieldrequired => 'bit',
305 flag => 'permissions',
306 flagdesc => 'Set user permissions',
310 uniquefieldrequired => 'bit',
312 flag => 'reserveforothers',
313 flagdesc => 'Reserve books for patrons',
317 uniquefieldrequired => 'bit',
320 flagdesc => 'Borrow books',
324 uniquefieldrequired => 'bit',
326 flag => 'reserveforself',
327 flagdesc => 'Reserve books for self',
331 uniquefieldrequired => 'bit',
333 flag => 'editcatalogue',
334 flagdesc => 'Edit Catalogue (Modify bibliographic/holdings data)',
338 uniquefieldrequired => 'bit',
340 flag => 'updatecharges',
341 flagdesc => 'Update borrower charges',
345 systempreferences => [
347 uniquefieldrequired => 'variable',
348 variable => 'autoMemberNum',
350 explanation => '1 or 0. If 1, Member number is auto-calculated'
353 uniquefieldrequired => 'variable',
354 variable => 'acquisitions',
357 'normal or simple : whether to use "acqui" or "acqui.simple" acquisition system'
360 uniquefieldrequired => 'variable',
361 variable => 'dateformat',
363 explanation => 'metric, us, or iso'
366 uniquefieldrequired => 'variable',
367 variable => 'template',
369 explanation => 'template default name'
372 uniquefieldrequired => 'variable',
373 variable => 'autoBarcode',
375 explanation => '1 or 0. If 1, Barcode is auto-calculated'
378 uniquefieldrequired => 'variable',
379 variable => 'insecure',
382 'if YES, no auth at all is needed. Be careful if you set this to yes !'
385 uniquefieldrequired => 'variable',
386 variable => 'authoritysep',
389 'the separator used in authority/thesaurus. Usually --'
392 uniquefieldrequired => 'variable',
393 variable => 'opaclanguages',
395 explanation => 'languages'
398 uniquefieldrequired => 'variable',
399 variable => 'opacthemes',
401 explanation => 'theme'
404 uniquefieldrequired => 'variable',
405 variable => 'timeout',
407 explanation => 'login timeout'
410 uniquefieldrequired => 'variable',
413 explanation => 'MARC support (ON or OFF)'
416 uniquefieldrequired => 'variable',
417 variable => 'marcflavour',
420 'your MARC flavor (MARC21 or UNIMARC) used for character encoding'
423 uniquefieldrequired => 'variable',
424 variable => 'checkdigit',
427 'none= no check on member cardnumber. katipo= katipo check'
430 uniquefieldrequired => 'variable',
431 variable => 'dateformat',
434 'date format (US mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy/mm/dd) '
437 uniquefieldrequired => 'variable',
438 variable => 'maxoutstanding',
441 'maximum amount withstanding to be able make reserves '
444 uniquefieldrequired => 'variable',
445 variable => 'maxreserves',
448 'maximum number of reserves a member can make '
451 uniquefieldrequired => 'variable',
452 variable => 'noissuescharge',
455 'maximum amount withstanding to be able to check out an item '
458 uniquefieldrequired => 'variable',
459 variable => 'KohaAdminEmailAddress',
460 value => 'your.mail@here',
461 explanation => 'the email adress where borrowers modifs are sent'
467 my %fielddefinitions = (
470 field => 'printername',
479 field => 'bookfundid',
493 extra => 'auto_increment'
503 # Get version of MySQL database engine.
504 my $mysqlversion = `mysqld --version`;
505 $mysqlversion =~ /Ver (\S*) /;
507 if ( $mysqlversion ge '3.23' ) {
508 print "Could convert to MyISAM database tables...\n";
511 #---------------------------------
514 # Collect all tables into a list
515 $sth = $dbh->prepare("show tables");
517 while ( my ($table) = $sth->fetchrow ) {
518 $existingtables{$table} = 1;
521 # Now add any missing tables
522 foreach $table ( keys %requiretables ) {
523 print "Checking $table table...\n" if $debug;
524 unless ( $existingtables{$table} ) {
525 print "Adding $table table...\n";
526 my $sth = $dbh->prepare("create table $table $requiretables{$table}");
529 print "Error : $sth->errstr \n";
535 # now drop useless tables
536 foreach $table ( keys %dropable_table ) {
537 print "Dropping unused tables...\n" if $debug;
538 if ( $existingtables{$table} ) {
539 $dbh->do("drop table $table");
541 print "Error : $dbh->errstr \n";
545 unless ( $existingtables{'z3950servers'} ) {
546 print "Adding z3950servers table...\n";
547 my $sti = $dbh->prepare( "create table z3950servers (
559 $sti = $dbh->prepare( "insert into z3950servers
560 values ('z3950.loc.gov',
564 'Library of Congress',
570 #---------------------------------
573 foreach $table ( keys %requirefields ) {
574 print "Check table $table\n" if $debug;
575 $sth = $dbh->prepare("show columns from $table");
578 while ( ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
580 $types{$column} = $type;
582 foreach $column ( keys %{ $requirefields{$table} } ) {
583 print " Check column $column\n" if $debug;
584 if ( !$types{$column} ) {
586 # column doesn't exist
587 print "Adding $column field to $table table...\n";
588 $query = "alter table $table
589 add column $column " . $requirefields{$table}->{$column};
590 print "Execute: $query\n" if $debug;
591 my $sti = $dbh->prepare($query);
594 print "**Error : $sti->errstr \n";
601 foreach $table ( keys %fielddefinitions ) {
602 print "Check table $table\n" if $debug;
603 $sth = $dbh->prepare("show columns from $table");
606 while ( ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
608 $definitions->{$column}->{type} = $type;
609 $definitions->{$column}->{null} = $null;
610 $definitions->{$column}->{key} = $key;
611 $definitions->{$column}->{default} = $default;
612 $definitions->{$column}->{extra} = $extra;
614 my $fieldrow = $fielddefinitions{$table};
615 foreach my $row (@$fieldrow) {
616 my $field = $row->{field};
617 my $type = $row->{type};
618 my $null = $row->{null};
619 my $key = $row->{key};
620 my $default = $row->{default};
621 my $extra = $row->{extra};
622 my $def = $definitions->{$field};
623 unless ( $type eq $def->{type}
624 && $null eq $def->{null}
625 && $key eq $def->{key}
626 && $default eq $def->{default}
627 && $extra eq $def->{extra} )
633 if ( $key eq 'PRI' ) {
634 $key = 'PRIMARY KEY';
636 unless ( $extra eq 'auto_increment' ) {
641 "alter table $table change $field $field $type $null $key $extra default ?"
643 $sth->execute($default);
644 print " Alter $field in $table\n";
649 # Get list of columns from items table
652 $sth = $dbh->prepare("show columns from items");
654 while ( my ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
656 $itemtypes{$column} = $type;
659 unless ( $itemtypes{'barcode'} eq 'varchar(20)' ) {
660 $itemtypes{'barcode'} =~ /varchar\((\d+)\)/;
662 if ( $oldlength < 20 ) {
663 print "Setting maximum barcode length to 20 (was $oldlength).\n";
666 "alter table items change barcode barcode varchar(20) not null");
671 # extending the timestamp in branchtransfers...
674 $sth = $dbh->prepare("show columns from branchtransfers");
676 while ( my ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
678 $branchtransfers{$column} = $type;
681 unless ( $branchtransfers{'datesent'} eq 'datetime' ) {
682 print "Setting type of datesent in branchtransfers to datetime.\n";
685 "alter table branchtransfers change datesent datesent datetime");
689 unless ( $branchtransfers{'datearrived'} eq 'datetime' ) {
690 print "Setting type of datearrived in branchtransfers to datetime.\n";
693 "alter table branchtransfers change datearrived datearrived datetime");
697 # changing the branchcategories table around...
698 my %branchcategories;
700 $sth = $dbh->prepare("show columns from branchcategories");
702 while ( my ( $column, $type, $null, $key, $default, $extra ) = $sth->fetchrow )
704 $branchcategories{$column} = $type;
707 unless ( $branchcategories{'categorycode'} eq 'varchar(4)' ) {
709 "Setting type of categorycode in branchcategories to varchar(4),\n and making the primary key.\n";
712 "alter table branchcategories change categorycode categorycode varchar(4) not null"
717 "alter table branchcategories add primary key (categorycode)");
721 unless ( $branchcategories{'categoryname'} eq 'text' ) {
722 print "Changing branchcode in branchcategories to categoryname text.\n";
725 "alter table branchcategories change branchcode categoryname text");
729 unless ( $branchcategories{'codedescription'} eq 'text' ) {
731 "Replacing branchholding in branchcategories with codedescription text.\n";
734 "alter table branchcategories change branchholding codedescription text"
739 # Populate tables with required data
741 foreach my $table ( keys %tabledata ) {
742 print "Checking for data required in table $table...\n";
743 my $tablerows = $tabledata{$table};
744 foreach my $row (@$tablerows) {
745 my $uniquefieldrequired = $row->{uniquefieldrequired};
746 my $uniquevalue = $row->{$uniquefieldrequired};
749 "select $uniquefieldrequired from $table where $uniquefieldrequired=?"
751 $sth->execute($uniquevalue);
752 unless ( $sth->rows ) {
753 print "Adding row to $table: ";
757 foreach my $field ( keys %$row ) {
758 (next) if ( $field eq 'uniquefieldrequired' );
759 my $value = $row->{$field};
760 push @values, $value;
761 print " $field => $value";
762 $fieldlist .= "$field,";
763 $placeholders .= "?,";
766 $fieldlist =~ s/,$//;
767 $placeholders =~ s/,$//;
770 "insert into $table ($fieldlist) values ($placeholders)");
771 $sth->execute(@values);
781 # Revision 1.46 2003/05/08 12:48:24 wolfpac444
782 # Added "noissuescharge" parameter
784 # Revision 1.45 2003/05/08 12:26:16 wolfpac444
787 # Revision 1.44 2003/05/03 05:39:57 rangi
789 # (Wording changes in the explanation fields in system preferences)
791 # Revision 1.43 2003/05/02 23:01:09 rangi
792 # Adding the textmessaging column to the borrowers table.
793 # insertdata.pl is expecting this to exist, and hence modifying/adding
794 # borrowers was broken.
796 # Also ran they script thru perltidy
798 # Revision 1.42 2003/04/29 16:53:25 tipaul
799 # really proud of this commit :-)
800 # z3950 search and import seems to works fine.
801 # Let me explain how :
802 # * a "search z3950" button is added in the addbiblio template.
803 # * when clicked, a popup appears and z3950/search.pl is called
804 # * z3950/search.pl calls addz3950search in the DB
805 # * the z3950 daemon retrieve the records and stores them in z3950results AND in marc_breeding table.
806 # * as long as there as searches pending, the popup auto refresh every 2 seconds, and says how many searches are pending.
807 # * when the user clicks on a z3950 result => the parent popup is called with the requested biblio, and auto-filled
810 # * character encoding support : (It's a nightmare...) In the z3950servers table, a "encoding" column has been added. You can put "UNIMARC" or "USMARC" in this column. Depending on this, the char_decode in C4::Biblio.pm replaces marc-char-encode by an iso 8859-1 encoding. Note that in the breeding import this value has been added too, for a better support.
811 # * the marc_breeding and z3950* tables have been modified : they have an encoding column and the random z3950 number is stored too for convenience => it's the key I use to list only requested biblios in the popup.
813 # Revision 1.41 2003/04/29 08:09:44 tipaul
814 # z3950 support is coming...
815 # * adding a syntax column in z3950 table = this column will say wether the z3950 must be called with PerferedRecordsyntax => USMARC or PerferedRecordsyntax => UNIMARC. I tried some french UNIMARC z3950 servers, and some only send USMARC, some only UNIMARC, some can answer with both.
816 # Note this is a 1st draft. More to follow (today ? I hope).
818 # Revision 1.40 2003/04/22 10:48:27 wolfpac444
819 # Added "father" column to bibliothesaurus table
821 # Revision 1.39 2003/04/04 08:45:00 tipaul
822 # last commits before 1.9.1
824 # Revision 1.38 2003/03/18 10:58:19 tipaul
825 # adding checkdigit parameter that choose how to check the members cardnumber.
827 # * none = no checking
828 # * katipo = checked as before
830 # Revision 1.37 2003/01/30 01:47:48 acli
831 # Corrected syntax error reported by Benedict
833 # Made the indentation somewhat easier to read; the messiness probably caused
834 # the original syntax error.
836 # Revision 1.36 2003/01/28 15:13:30 tipaul
837 # userflag table now created in upgrade script (bugfix #171)
839 # Revision 1.35 2003/01/27 03:12:49 acli
840 # Reworded the description for "acquisitions" to make it fit on the screen
842 # Added "iso" to dateformat, since dateformat is not yet being used anyway
844 # Revision 1.34 2003/01/23 12:30:02 tipaul
845 # introducint marcflavour in systempref file : used for character decoding
847 # Revision 1.33 2003/01/21 09:03:27 tipaul
848 # bugfix (NOTE : this bugs makes installation of the 1.3.3 a little fuzzy. Please fix your DB if you installed 1.3.3)
850 # Revision 1.32 2003/01/16 10:29:45 tipaul
851 # adding a MARC parameter in systempref ( which is ON or OFF)
852 # the search will be a marc search if MARC=ON
853 # and a standard (v1.2) search if MARC=OFF
855 # Revision 1.31 2003/01/06 13:32:43 tipaul
856 # *** empty log message ***
858 # Revision 1.29 2003/01/06 11:14:11 tipaul
859 # last bugfixes before 1.3.3 : systempref table correctly filled
861 # Revision 1.28 2002/12/10 13:27:47 tipaul
862 # bugfixes (davide mails in koha-dev)
864 # Revision 1.27 2002/11/26 15:04:54 tipaul
865 # road to 1.3.2. Updating db structure during installation
867 # Revision 1.26 2002/11/12 17:42:40 tonnesen
868 # Merged some features over from rel-1-2, including primary key checking.
870 # Revision 1.25 2002/11/12 16:44:38 tipaul
873 # * adding value_builder : you can map a subfield in the marc_subfield_structure to a sub stored in "value_builder" directory. In this directory you can create screen used to build values with any method. In this commit is a 1st draft of the builder for 100$a unimarc french subfield, which is composed of 35 digits, with 12 differents values (only the 4th first are provided for instance)
875 # Revision 1.24 2002/10/30 14:00:23 arensb
876 # (bug fix): Fixed typo.
878 # Revision 1.23 2002/10/25 10:55:46 tipaul
880 # * bugfixes and improvements
881 # * manage mandatory MARC subfields
882 # * new table : authorised_values. this table contains categories and authorised values for the category. On MARC management, you can map a subfield to a authorised_values category. If you do this, the subfield can only be filled with a authorised_value of the selected category.
883 # this submit contains everything needed :
886 # * "links" management
887 # * creation of a html-list if a subfield is mapped to an authorised value.
889 # Note this is different from authorities support, which will come soon.
890 # The authorised_values is supposed to contains a "small" number of authorised values for a category (less than 50-100). If you enter more authorised values than this, it should be hard to find what you want in a BIG list...
892 # Revision 1.22 2002/10/15 10:08:19 tipaul
893 # fixme corrected, re-indent and adding the marc_breeding table (see commit of marcimport.pl for more explanations about breeding)
895 # Revision 1.21 2002/10/14 11:48:59 tipaul
898 # Revision 1.20 2002/10/10 04:49:41 arensb
899 # Added some FIXME comments.
901 # Revision 1.19 2002/10/05 10:17:17 arensb
902 # Merged with arensb-context branch: use C4::Context->dbh instead of
903 # &C4Connect, and generally prefer C4::Context over C4::Database.
905 # Revision 1.18.2.2 2002/10/05 06:18:43 arensb
906 # Added a whole mess of FIXME comments.
908 # Revision 1.18.2.1 2002/10/04 02:46:00 arensb
909 # Use C4::Connect instead of C4::Database, C4::Connect->dbh instead
912 # Revision 1.18 2002/09/24 13:50:55 tipaul
913 # long WAS the road to 1.3.0...
914 # coming VERY SOON NOW...
915 # modifying installer and buildrelease to update the DB
917 # Revision 1.17 2002/09/24 12:57:35 tipaul
918 # long WAS the road to 1.3.0...
919 # coming VERY SOON NOW...
920 # modifying installer and buildrelease to update the DB
922 # Revision 1.16 2002/07/31 02:34:27 finlayt
924 # added "notforloan" field to the itemtypes table.
926 # Revision 1.15 2002/07/20 22:30:06 rangi
927 # Making sure fix makes it into the main branch as well
930 # Revision 1.14 2002/07/08 16:20:26 tonnesen
931 # Added sessionqueries table and password/userid fields to borrowers table
933 # Revision 1.13 2002/07/04 18:05:36 tonnesen
936 # Revision 1.12 2002/07/04 16:41:06 tonnesen
937 # Merged changes from rel-1-2. Abstracted table structure changes by alan.