Lines 350-356
CREATE TABLE `branch_borrower_circ_rules` ( -- includes default circulation rule
Link Here
|
350 |
`categorycode` VARCHAR(10) NOT NULL, -- the patron category this rule applies to (categories.categorycode) |
350 |
`categorycode` VARCHAR(10) NOT NULL, -- the patron category this rule applies to (categories.categorycode) |
351 |
`maxissueqty` int(4) default NULL, -- the maximum number of checkouts this patron category can have at this branch |
351 |
`maxissueqty` int(4) default NULL, -- the maximum number of checkouts this patron category can have at this branch |
352 |
`maxonsiteissueqty` int(4) default NULL, -- the maximum number of on-site checkouts this patron category can have at this branch |
352 |
`maxonsiteissueqty` int(4) default NULL, -- the maximum number of on-site checkouts this patron category can have at this branch |
353 |
max_holds INT(4) NULL DEFAULT NULL, -- the maximum number of holds a patron may have at a time |
|
|
354 |
PRIMARY KEY (`categorycode`, `branchcode`), |
353 |
PRIMARY KEY (`categorycode`, `branchcode`), |
355 |
CONSTRAINT `branch_borrower_circ_rules_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`) |
354 |
CONSTRAINT `branch_borrower_circ_rules_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`) |
356 |
ON DELETE CASCADE ON UPDATE CASCADE, |
355 |
ON DELETE CASCADE ON UPDATE CASCADE, |
Lines 367-373
CREATE TABLE `default_borrower_circ_rules` ( -- default checkout rules found und
Link Here
|
367 |
`categorycode` VARCHAR(10) NOT NULL, -- patron category this rul |
366 |
`categorycode` VARCHAR(10) NOT NULL, -- patron category this rul |
368 |
`maxissueqty` int(4) default NULL, |
367 |
`maxissueqty` int(4) default NULL, |
369 |
`maxonsiteissueqty` int(4) default NULL, |
368 |
`maxonsiteissueqty` int(4) default NULL, |
370 |
max_holds INT(4) NULL DEFAULT NULL, -- the maximum number of holds a patron may have at a time |
|
|
371 |
PRIMARY KEY (`categorycode`), |
369 |
PRIMARY KEY (`categorycode`), |
372 |
CONSTRAINT `borrower_borrower_circ_rules_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`) |
370 |
CONSTRAINT `borrower_borrower_circ_rules_ibfk_1` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`) |
373 |
ON DELETE CASCADE ON UPDATE CASCADE |
371 |
ON DELETE CASCADE ON UPDATE CASCADE |
Lines 4208-4215
CREATE TABLE `circulation_rules` (
Link Here
|
4208 |
KEY `branchcode` (`branchcode`), |
4206 |
KEY `branchcode` (`branchcode`), |
4209 |
KEY `categorycode` (`categorycode`), |
4207 |
KEY `categorycode` (`categorycode`), |
4210 |
KEY `itemtype` (`itemtype`), |
4208 |
KEY `itemtype` (`itemtype`), |
4211 |
UNIQUE (`branchcode`,`categorycode`,`itemtype`) |
4209 |
KEY `rule_name` (`rule_name`), |
4212 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
4210 |
UNIQUE (`branchcode`,`categorycode`,`itemtype`,`rule_name`) |
|
|
4211 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4213 |
|
4212 |
|
4214 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
4213 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
4215 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
4214 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
4216 |
- |
|
|