Lines 5065-5072
DROP TABLE IF EXISTS `hold_groups`;
Link Here
|
5065 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
5065 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
5066 |
/*!40101 SET character_set_client = utf8 */; |
5066 |
/*!40101 SET character_set_client = utf8 */; |
5067 |
CREATE TABLE hold_groups ( |
5067 |
CREATE TABLE hold_groups ( |
5068 |
hold_group_id int unsigned NOT NULL AUTO_INCREMENT, |
5068 |
`hold_group_id` int unsigned NOT NULL AUTO_INCREMENT, |
5069 |
`borrowernumber` int(11) DEFAULT NULL COMMENT 'foreign key, linking this to the borrowers table', |
5069 |
`borrowernumber` int(11) DEFAULT NULL COMMENT 'foreign key, linking this to the borrowers table', |
|
|
5070 |
`visual_hold_group_id` int(11) DEFAULT NULL COMMENT 'visual ID for this hold group, in the context of the related patron', |
5070 |
KEY `hold_groups_borrowernumber` (`borrowernumber`), |
5071 |
KEY `hold_groups_borrowernumber` (`borrowernumber`), |
5071 |
CONSTRAINT `hold_groups_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE, |
5072 |
CONSTRAINT `hold_groups_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE, |
5072 |
PRIMARY KEY (hold_group_id) |
5073 |
PRIMARY KEY (hold_group_id) |