View | Details | Raw Unified | Return to bug 7509
Collapse All | Expand All

(-)a/installer/data/mysql/kohastructure.sql (+1 lines)
Lines 1045-1050 CREATE TABLE `items` ( -- holdings/item information Link Here
1045
  KEY `itembibnoidx` (`biblionumber`),
1045
  KEY `itembibnoidx` (`biblionumber`),
1046
  KEY `homebranch` (`homebranch`),
1046
  KEY `homebranch` (`homebranch`),
1047
  KEY `holdingbranch` (`holdingbranch`),
1047
  KEY `holdingbranch` (`holdingbranch`),
1048
  KEY (itemcallnumber),
1048
  CONSTRAINT `items_ibfk_1` FOREIGN KEY (`biblioitemnumber`) REFERENCES `biblioitems` (`biblioitemnumber`) ON DELETE CASCADE ON UPDATE CASCADE,
1049
  CONSTRAINT `items_ibfk_1` FOREIGN KEY (`biblioitemnumber`) REFERENCES `biblioitems` (`biblioitemnumber`) ON DELETE CASCADE ON UPDATE CASCADE,
1049
  CONSTRAINT `items_ibfk_2` FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE,
1050
  CONSTRAINT `items_ibfk_2` FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE,
1050
  CONSTRAINT `items_ibfk_3` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE
1051
  CONSTRAINT `items_ibfk_3` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +7 lines)
Lines 4671-4676 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
4671
    SetVersion ($DBversion);
4671
    SetVersion ($DBversion);
4672
}
4672
}
4673
4673
4674
$DBversion = "3.07.00.XXX";
4675
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
4676
    $dbh->do("ALTER TABLE items ADD KEY (itemcallnumber)");
4677
    print "Upgrade to $DBversion done (Added index on items.itemcallnumber)\n";
4678
    SetVersion($DBversion);
4679
}
4680
4674
=head1 FUNCTIONS
4681
=head1 FUNCTIONS
4675
4682
4676
=head2 DropAllForeignKeys($table)
4683
=head2 DropAllForeignKeys($table)
4677
- 

Return to bug 7509