marc_subfield_structure =>{'seealso' => 'char(255)'},
bookshelf => {'owner' => 'char(80)',
'category' => 'char(1)',
- }
+ },
);
my %dropable_table = (
);
$sti->execute;
}
+unless ( $existingtables{'issuingrules'} ) {
+ $dbh->do("alter table categoryitem rename issuingrules");
+ print "renaming categoryitem\n";
+}
+
#---------------------------------
# Columns
$sti->execute;
}
+#
+# creating index in issuingrules if needed
+#
+$sth = $dbh->prepare("show index from issuingrules");
+$sth->execute;
+my $exists=0;
+while ( my ( $table, $non_unique, $key_name, $Seq_in_index, $Column_name, $Collation, $cardinality, $sub_part, $Packed, $comment ) = $sth->fetchrow )
+{
+ if ($key_name eq 'PRIMARY') {
+ $exists=1;
+ }
+}
+print "Creating index on z3950results\n" unless $exists;
+$dbh->do('ALTER TABLE issuingrules ADD PRIMARY KEY ( branchcode, categorycode, itemtype )') unless $exists;
+
+
# Populate tables with required data
foreach my $table ( keys %tabledata ) {
exit;
# $Log$
+# Revision 1.77 2004/05/06 14:56:51 tipaul
+# adding table issuingrules (previously called categoryitem
+#
# Revision 1.76 2004/05/03 09:32:25 tipaul
# adding printcirculationsplit parameter (already existed, but was not in systempref by defaul)
#