|
Lines 3552-3557
DROP TABLE IF EXISTS `hold_groups`;
Link Here
|
| 3552 |
CREATE TABLE `hold_groups` ( |
3552 |
CREATE TABLE `hold_groups` ( |
| 3553 |
`hold_group_id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
3553 |
`hold_group_id` int(10) unsigned NOT NULL AUTO_INCREMENT, |
| 3554 |
`borrowernumber` int(11) DEFAULT NULL COMMENT 'foreign key, linking this to the borrowers table', |
3554 |
`borrowernumber` int(11) DEFAULT NULL COMMENT 'foreign key, linking this to the borrowers table', |
|
|
3555 |
`visual_hold_group_id` int(11) DEFAULT NULL COMMENT 'visual ID for this hold group, in the context of the related patron', |
| 3555 |
KEY `hold_groups_borrowernumber` (`borrowernumber`), |
3556 |
KEY `hold_groups_borrowernumber` (`borrowernumber`), |
| 3556 |
CONSTRAINT `hold_groups_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE, |
3557 |
CONSTRAINT `hold_groups_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE, |
| 3557 |
PRIMARY KEY (`hold_group_id`) |
3558 |
PRIMARY KEY (`hold_group_id`) |