Bug 6716 - Document subscriptionroutinglist table
This table holds information related to serials routing lists. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
3b581039a9
commit
f869d8d489
1 changed files with 5 additions and 5 deletions
|
@ -1807,11 +1807,11 @@ CREATE TABLE `subscriptionhistory` (
|
|||
--
|
||||
|
||||
DROP TABLE IF EXISTS `subscriptionroutinglist`;
|
||||
CREATE TABLE `subscriptionroutinglist` (
|
||||
`routingid` int(11) NOT NULL auto_increment,
|
||||
`borrowernumber` int(11) NOT NULL,
|
||||
`ranking` int(11) default NULL,
|
||||
`subscriptionid` int(11) NOT NULL,
|
||||
CREATE TABLE `subscriptionroutinglist` ( -- information related to the routing lists attached to subscriptions
|
||||
`routingid` int(11) NOT NULL auto_increment, -- unique identifier assigned by Koha
|
||||
`borrowernumber` int(11) NOT NULL, -- foreign key from the borrowers table, defines with patron is on the routing list
|
||||
`ranking` int(11) default NULL, -- where the patron stands in line to receive the serial
|
||||
`subscriptionid` int(11) NOT NULL, -- foreign key from the subscription table, defines which subscription this routing list is for
|
||||
PRIMARY KEY (`routingid`),
|
||||
UNIQUE (`subscriptionid`, `borrowernumber`),
|
||||
CONSTRAINT `subscriptionroutinglist_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`)
|
||||
|
|
Loading…
Reference in a new issue