Lines 5058-5063
CREATE TABLE `old_issues` (
Link Here
|
5058 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5058 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5059 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5059 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5060 |
|
5060 |
|
|
|
5061 |
-- |
5062 |
-- Table structure for table `hold_groups` |
5063 |
-- |
5064 |
DROP TABLE IF EXISTS `hold_groups`; |
5065 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
5066 |
/*!40101 SET character_set_client = utf8 */; |
5067 |
CREATE TABLE hold_groups ( |
5068 |
hold_group_id int unsigned NOT NULL AUTO_INCREMENT, |
5069 |
PRIMARY KEY (hold_group_id) |
5070 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5071 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5072 |
|
5061 |
-- |
5073 |
-- |
5062 |
-- Table structure for table `old_reserves` |
5074 |
-- Table structure for table `old_reserves` |
5063 |
-- |
5075 |
-- |
Lines 5092-5097
CREATE TABLE `old_reserves` (
Link Here
|
5092 |
`itemtype` varchar(10) DEFAULT NULL COMMENT 'If record level hold, the optional itemtype of the item the patron is requesting', |
5104 |
`itemtype` varchar(10) DEFAULT NULL COMMENT 'If record level hold, the optional itemtype of the item the patron is requesting', |
5093 |
`item_level_hold` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is the hold placed at item level', |
5105 |
`item_level_hold` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is the hold placed at item level', |
5094 |
`non_priority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is this a non priority hold', |
5106 |
`non_priority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is this a non priority hold', |
|
|
5107 |
`hold_group_id` int unsigned NULL DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked', |
5095 |
PRIMARY KEY (`reserve_id`), |
5108 |
PRIMARY KEY (`reserve_id`), |
5096 |
KEY `old_reserves_borrowernumber` (`borrowernumber`), |
5109 |
KEY `old_reserves_borrowernumber` (`borrowernumber`), |
5097 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
5110 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
Lines 5104-5110
CREATE TABLE `old_reserves` (
Link Here
|
5104 |
CONSTRAINT `old_reserves_ibfk_3` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
5117 |
CONSTRAINT `old_reserves_ibfk_3` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE SET NULL ON UPDATE SET NULL, |
5105 |
CONSTRAINT `old_reserves_ibfk_4` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE SET NULL ON UPDATE SET NULL, |
5118 |
CONSTRAINT `old_reserves_ibfk_4` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE SET NULL ON UPDATE SET NULL, |
5106 |
CONSTRAINT `old_reserves_ibfk_branchcode` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE SET NULL ON UPDATE CASCADE, |
5119 |
CONSTRAINT `old_reserves_ibfk_branchcode` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE SET NULL ON UPDATE CASCADE, |
5107 |
CONSTRAINT `old_reserves_ibfk_ig` FOREIGN KEY (`item_group_id`) REFERENCES `item_groups` (`item_group_id`) ON DELETE SET NULL ON UPDATE SET NULL |
5120 |
CONSTRAINT `old_reserves_ibfk_ig` FOREIGN KEY (`item_group_id`) REFERENCES `item_groups` (`item_group_id`) ON DELETE SET NULL ON UPDATE SET NULL, |
|
|
5121 |
CONSTRAINT `old_reserves_ibfk_hg` FOREIGN KEY (`hold_group_id`) REFERENCES `hold_groups` (`hold_group_id`) ON DELETE SET NULL ON UPDATE SET NULL |
5108 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5122 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5109 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5123 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5110 |
|
5124 |
|
Lines 5662-5667
CREATE TABLE `reserves` (
Link Here
|
5662 |
`itemtype` varchar(10) DEFAULT NULL COMMENT 'If record level hold, the optional itemtype of the item the patron is requesting', |
5676 |
`itemtype` varchar(10) DEFAULT NULL COMMENT 'If record level hold, the optional itemtype of the item the patron is requesting', |
5663 |
`item_level_hold` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is the hold placed at item level', |
5677 |
`item_level_hold` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is the hold placed at item level', |
5664 |
`non_priority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is this a non priority hold', |
5678 |
`non_priority` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Is this a non priority hold', |
|
|
5679 |
`hold_group_id` int unsigned NULL DEFAULT NULL COMMENT 'The id of a group of titles reservations fulfilled when one title is picked', |
5665 |
PRIMARY KEY (`reserve_id`), |
5680 |
PRIMARY KEY (`reserve_id`), |
5666 |
KEY `priorityfoundidx` (`priority`,`found`), |
5681 |
KEY `priorityfoundidx` (`priority`,`found`), |
5667 |
KEY `borrowernumber` (`borrowernumber`), |
5682 |
KEY `borrowernumber` (`borrowernumber`), |
Lines 5677-5683
CREATE TABLE `reserves` (
Link Here
|
5677 |
CONSTRAINT `reserves_ibfk_4` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE CASCADE ON UPDATE CASCADE, |
5692 |
CONSTRAINT `reserves_ibfk_4` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE CASCADE ON UPDATE CASCADE, |
5678 |
CONSTRAINT `reserves_ibfk_5` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE, |
5693 |
CONSTRAINT `reserves_ibfk_5` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE, |
5679 |
CONSTRAINT `reserves_ibfk_6` FOREIGN KEY (`desk_id`) REFERENCES `desks` (`desk_id`) ON DELETE SET NULL ON UPDATE CASCADE, |
5694 |
CONSTRAINT `reserves_ibfk_6` FOREIGN KEY (`desk_id`) REFERENCES `desks` (`desk_id`) ON DELETE SET NULL ON UPDATE CASCADE, |
5680 |
CONSTRAINT `reserves_ibfk_ig` FOREIGN KEY (`item_group_id`) REFERENCES `item_groups` (`item_group_id`) ON DELETE SET NULL ON UPDATE CASCADE |
5695 |
CONSTRAINT `reserves_ibfk_ig` FOREIGN KEY (`item_group_id`) REFERENCES `item_groups` (`item_group_id`) ON DELETE SET NULL ON UPDATE CASCADE, |
|
|
5696 |
CONSTRAINT `reserves_ibfk_hg` FOREIGN KEY (`hold_group_id`) REFERENCES `hold_groups` (`hold_group_id`) ON DELETE SET NULL ON UPDATE CASCADE |
5681 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5697 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5682 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5698 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5683 |
|
5699 |
|
5684 |
- |
|
|