DB Update .086: adding new table tmp_holdsqueue,

used for reporting picklist for holds in multi-location
libraries. This is a temporary workaround to a longer-term
post-3.0 cleanup of the holds process.

Following this will be a cron job for managing the
holds picklist queue as well as a report for viewing
the list of items from circulation
This commit is contained in:
Joshua Ferraro 2008-05-20 09:36:26 -05:00
parent bcd6262494
commit 725e822aed
3 changed files with 46 additions and 1 deletions

View file

@ -2096,6 +2096,28 @@ CREATE TABLE `user_permissions` (
ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `tmp_holdsqueue`
--
DROP TABLE IF EXISTS `tmp_holdsqueue`;
CREATE TABLE `tmp_holdsqueue` (
`biblionumber` int(11) default NULL,
`itemnumber` int(11) default NULL,
`barcode` varchar(20) default NULL,
`surname` mediumtext NOT NULL,
`firstname` text,
`phone` text,
`borrowernumber` int(11) NOT NULL,
`cardnumber` varchar(16) default NULL,
`reservedate` date default NULL,
`title` mediumtext,
`itemcallnumber` varchar(30) default NULL,
`holdingbranch` varchar(10) default NULL,
`pickbranch` varchar(10) default NULL,
`notes` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;

View file

@ -1576,6 +1576,29 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
$DBversion = "3.00.00.086";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do(
"CREATE TABLE `tmp_holdsqueue` (
`biblionumber` int(11) default NULL,
`itemnumber` int(11) default NULL,
`barcode` varchar(20) default NULL,
`surname` mediumtext NOT NULL,
`firstname` text,
`phone` text,
`borrowernumber` int(11) NOT NULL,
`cardnumber` varchar(16) default NULL,
`reservedate` date default NULL,
`title` mediumtext,
`itemcallnumber` varchar(30) default NULL,
`holdingbranch` varchar(10) default NULL,
`pickbranch` varchar(10) default NULL,
`notes` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8");
print "Upgrade to $DBversion done (Table structure for table `tmp_holdsqueue`)\n";
SetVersion ($DBversion);
}
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table

View file

@ -10,7 +10,7 @@
use strict;
sub kohaversion {
our $VERSION = "3.00.00.085";
our $VERSION = "3.00.00.086";
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install