Lines 1706-1711
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
Link Here
|
1706 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with |
1706 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with |
1707 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1707 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1708 |
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) |
1708 |
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) |
|
|
1709 |
`pickupexpired` DATE DEFAULT NULL, -- if hold has been waiting but it expired before it was picked up, the expiration date is set here |
1709 |
`lowestPriority` tinyint(1) NOT NULL, -- has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no) |
1710 |
`lowestPriority` tinyint(1) NOT NULL, -- has this hold been pinned to the lowest priority in the holds queue (1 for yes, 0 for no) |
1710 |
`suspend` BOOLEAN NOT NULL DEFAULT 0, -- in this hold suspended (1 for yes, 0 for no) |
1711 |
`suspend` BOOLEAN NOT NULL DEFAULT 0, -- in this hold suspended (1 for yes, 0 for no) |
1711 |
`suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely) |
1712 |
`suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely) |
Lines 1714-1719
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
Link Here
|
1714 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1715 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1715 |
KEY `old_reserves_itemnumber` (`itemnumber`), |
1716 |
KEY `old_reserves_itemnumber` (`itemnumber`), |
1716 |
KEY `old_reserves_branchcode` (`branchcode`), |
1717 |
KEY `old_reserves_branchcode` (`branchcode`), |
|
|
1718 |
KEY `old_reserves_pickupexpired` (`pickupexpired`), |
1717 |
CONSTRAINT `old_reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) |
1719 |
CONSTRAINT `old_reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) |
1718 |
ON DELETE SET NULL ON UPDATE SET NULL, |
1720 |
ON DELETE SET NULL ON UPDATE SET NULL, |
1719 |
CONSTRAINT `old_reserves_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) |
1721 |
CONSTRAINT `old_reserves_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) |
Lines 1940-1945
CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha
Link Here
|
1940 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with |
1942 |
`itemnumber` int(11) default NULL, -- foreign key from the items table defining the specific item the patron has placed on hold or the item this hold was filled with |
1941 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1943 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1942 |
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) |
1944 |
`expirationdate` DATE DEFAULT NULL, -- the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date) |
|
|
1945 |
`pickupexpired` DATE DEFAULT NULL, -- if hold has been waiting but it expired before it was picked up, the expiration date is set here |
1943 |
`lowestPriority` tinyint(1) NOT NULL, |
1946 |
`lowestPriority` tinyint(1) NOT NULL, |
1944 |
`suspend` BOOLEAN NOT NULL DEFAULT 0, |
1947 |
`suspend` BOOLEAN NOT NULL DEFAULT 0, |
1945 |
`suspend_until` DATETIME NULL DEFAULT NULL, |
1948 |
`suspend_until` DATETIME NULL DEFAULT NULL, |
Lines 1949-1954
CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha
Link Here
|
1949 |
KEY `biblionumber` (`biblionumber`), |
1952 |
KEY `biblionumber` (`biblionumber`), |
1950 |
KEY `itemnumber` (`itemnumber`), |
1953 |
KEY `itemnumber` (`itemnumber`), |
1951 |
KEY `branchcode` (`branchcode`), |
1954 |
KEY `branchcode` (`branchcode`), |
|
|
1955 |
KEY `reserves_pickupexpired` (`pickupexpired`), |
1952 |
CONSTRAINT `reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1956 |
CONSTRAINT `reserves_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1953 |
CONSTRAINT `reserves_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1957 |
CONSTRAINT `reserves_ibfk_2` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1954 |
CONSTRAINT `reserves_ibfk_3` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
1958 |
CONSTRAINT `reserves_ibfk_3` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, |