Lines 1384-1389
CREATE TABLE `old_issues` ( -- lists items that were checked out and have been r
Link Here
|
1384 |
-- |
1384 |
-- |
1385 |
DROP TABLE IF EXISTS `old_reserves`; |
1385 |
DROP TABLE IF EXISTS `old_reserves`; |
1386 |
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have been completed (either filled or cancelled) |
1386 |
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have been completed (either filled or cancelled) |
|
|
1387 |
`reservenumber` int(11) NOT NULL, -- primary key |
1387 |
`borrowernumber` int(11) default NULL, -- foreign key from the borrowers table defining which patron this hold is for |
1388 |
`borrowernumber` int(11) default NULL, -- foreign key from the borrowers table defining which patron this hold is for |
1388 |
`reservedate` date default NULL, -- the date the hold was places |
1389 |
`reservedate` date default NULL, -- the date the hold was places |
1389 |
`biblionumber` int(11) default NULL, -- foreign key from the biblio table defining which bib record this hold is on |
1390 |
`biblionumber` int(11) default NULL, -- foreign key from the biblio table defining which bib record this hold is on |
Lines 1400-1405
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
Link Here
|
1400 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1401 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1401 |
`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) |
1402 |
`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) |
1402 |
`lowestPriority` tinyint(1) NOT NULL, |
1403 |
`lowestPriority` tinyint(1) NOT NULL, |
|
|
1404 |
PRIMARY KEY (`reservenumber`), |
1403 |
KEY `old_reserves_borrowernumber` (`borrowernumber`), |
1405 |
KEY `old_reserves_borrowernumber` (`borrowernumber`), |
1404 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1406 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1405 |
KEY `old_reserves_itemnumber` (`itemnumber`), |
1407 |
KEY `old_reserves_itemnumber` (`itemnumber`), |
Lines 1577-1582
CREATE TABLE `reserveconstraints` (
Link Here
|
1577 |
|
1579 |
|
1578 |
DROP TABLE IF EXISTS `reserves`; |
1580 |
DROP TABLE IF EXISTS `reserves`; |
1579 |
CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha |
1581 |
CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha |
|
|
1582 |
`reservenumber` int(11) NOT NULL, -- primary key |
1580 |
`borrowernumber` int(11) NOT NULL default 0, -- foreign key from the borrowers table defining which patron this hold is for |
1583 |
`borrowernumber` int(11) NOT NULL default 0, -- foreign key from the borrowers table defining which patron this hold is for |
1581 |
`reservedate` date default NULL, -- the date the hold was places |
1584 |
`reservedate` date default NULL, -- the date the hold was places |
1582 |
`biblionumber` int(11) NOT NULL default 0, -- foreign key from the biblio table defining which bib record this hold is on |
1585 |
`biblionumber` int(11) NOT NULL default 0, -- foreign key from the biblio table defining which bib record this hold is on |
Lines 1593-1598
CREATE TABLE `reserves` ( -- information related to holds/reserves in Koha
Link Here
|
1593 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1596 |
`waitingdate` date default NULL, -- the date the item was marked as waiting for the patron at the library |
1594 |
`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) |
1597 |
`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) |
1595 |
`lowestPriority` tinyint(1) NOT NULL, |
1598 |
`lowestPriority` tinyint(1) NOT NULL, |
|
|
1599 |
PRIMARY KEY (`reservenumber`), |
1596 |
KEY priorityfoundidx (priority,found), |
1600 |
KEY priorityfoundidx (priority,found), |
1597 |
KEY `borrowernumber` (`borrowernumber`), |
1601 |
KEY `borrowernumber` (`borrowernumber`), |
1598 |
KEY `biblionumber` (`biblionumber`), |
1602 |
KEY `biblionumber` (`biblionumber`), |