Lines 3872-3877
CREATE TABLE `old_reserves` (
Link Here
|
3872 |
`itemnumber` int(11) DEFAULT NULL COMMENT 'foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with', |
3872 |
`itemnumber` int(11) DEFAULT NULL COMMENT 'foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with', |
3873 |
`waitingdate` date DEFAULT NULL COMMENT 'the date the item was marked as waiting for the patron at the library', |
3873 |
`waitingdate` date DEFAULT NULL COMMENT 'the date the item was marked as waiting for the patron at the library', |
3874 |
`expirationdate` date DEFAULT NULL COMMENT 'the date the hold expires (usually the date entered by the patron to say they don''t need the hold after a certain date)', |
3874 |
`expirationdate` date DEFAULT NULL COMMENT 'the date the hold expires (usually the date entered by the patron to say they don''t need the hold after a certain date)', |
|
|
3875 |
`pickupexpired` DATE DEFAULT NULL COMMENT 'if hold has been waiting but it expired before it was picked up, the expiration date is set here', |
3875 |
`lowestPriority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no)', |
3876 |
`lowestPriority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no)', |
3876 |
`suspend` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'in this hold suspended (1 for yes, 0 for no)', |
3877 |
`suspend` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'in this hold suspended (1 for yes, 0 for no)', |
3877 |
`suspend_until` datetime DEFAULT NULL COMMENT 'the date this hold is suspended until (NULL for infinitely)', |
3878 |
`suspend_until` datetime DEFAULT NULL COMMENT 'the date this hold is suspended until (NULL for infinitely)', |
Lines 3883-3888
CREATE TABLE `old_reserves` (
Link Here
|
3883 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
3884 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
3884 |
KEY `old_reserves_itemnumber` (`itemnumber`), |
3885 |
KEY `old_reserves_itemnumber` (`itemnumber`), |
3885 |
KEY `old_reserves_branchcode` (`branchcode`), |
3886 |
KEY `old_reserves_branchcode` (`branchcode`), |
|
|
3887 |
KEY `old_reserves_pickupexpired` (`pickupexpired`), |
3886 |
KEY `old_reserves_itemtype` (`itemtype`), |
3888 |
KEY `old_reserves_itemtype` (`itemtype`), |
3887 |
CONSTRAINT `old_reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
3889 |
CONSTRAINT `old_reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
3888 |
CONSTRAINT `old_reserves_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
3890 |
CONSTRAINT `old_reserves_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
Lines 4311-4316
CREATE TABLE `reserves` (
Link Here
|
4311 |
`itemnumber` int(11) DEFAULT NULL COMMENT 'foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with', |
4313 |
`itemnumber` int(11) DEFAULT NULL COMMENT 'foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with', |
4312 |
`waitingdate` date DEFAULT NULL COMMENT 'the date the item was marked as waiting for the patron at the library', |
4314 |
`waitingdate` date DEFAULT NULL COMMENT 'the date the item was marked as waiting for the patron at the library', |
4313 |
`expirationdate` date DEFAULT NULL COMMENT 'the date the hold expires (usually the date entered by the patron to say they don''t need the hold after a certain date)', |
4315 |
`expirationdate` date DEFAULT NULL COMMENT 'the date the hold expires (usually the date entered by the patron to say they don''t need the hold after a certain date)', |
|
|
4316 |
`pickupexpired` DATE DEFAULT NULL COMMENT 'if hold has been waiting but it expired before it was picked up, the expiration date is set here', |
4314 |
`lowestPriority` tinyint(1) NOT NULL DEFAULT 0, |
4317 |
`lowestPriority` tinyint(1) NOT NULL DEFAULT 0, |
4315 |
`suspend` tinyint(1) NOT NULL DEFAULT 0, |
4318 |
`suspend` tinyint(1) NOT NULL DEFAULT 0, |
4316 |
`suspend_until` datetime DEFAULT NULL, |
4319 |
`suspend_until` datetime DEFAULT NULL, |
Lines 4323-4328
CREATE TABLE `reserves` (
Link Here
|
4323 |
KEY `biblionumber` (`biblionumber`), |
4326 |
KEY `biblionumber` (`biblionumber`), |
4324 |
KEY `itemnumber` (`itemnumber`), |
4327 |
KEY `itemnumber` (`itemnumber`), |
4325 |
KEY `branchcode` (`branchcode`), |
4328 |
KEY `branchcode` (`branchcode`), |
|
|
4329 |
KEY `reserves_pickupexpired` (`pickupexpired`), |
4326 |
KEY `desk_id` (`desk_id`), |
4330 |
KEY `desk_id` (`desk_id`), |
4327 |
KEY `itemtype` (`itemtype`), |
4331 |
KEY `itemtype` (`itemtype`), |
4328 |
CONSTRAINT `reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
4332 |
CONSTRAINT `reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |