Lines 1713-1719
CREATE TABLE `old_issues` ( -- lists items that were checked out and have been r
Link Here
|
1713 |
CONSTRAINT `old_issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) |
1713 |
CONSTRAINT `old_issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) |
1714 |
ON DELETE SET NULL ON UPDATE SET NULL, |
1714 |
ON DELETE SET NULL ON UPDATE SET NULL, |
1715 |
CONSTRAINT `old_issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) |
1715 |
CONSTRAINT `old_issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) |
1716 |
ON DELETE SET NULL ON UPDATE SET NULL |
1716 |
ON DELETE SET NULL ON UPDATE SET NULL, |
|
|
1717 |
CONSTRAINT `old_reserves_ibfk_5` FOREIGN KEY (reserve_group_id) REFERENCES reserve_group (reserve_group_id) |
1718 |
ON DELETE SET NULL ON UPDATE CASCADE |
1717 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1719 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1718 |
|
1720 |
|
1719 |
-- |
1721 |
-- |
Lines 1869-1874
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
Link Here
|
1869 |
`suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely) |
1871 |
`suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely) |
1870 |
`itemtype` VARCHAR(10) NULL DEFAULT NULL, -- If record level hold, the optional itemtype of the item the patron is requesting |
1872 |
`itemtype` VARCHAR(10) NULL DEFAULT NULL, -- If record level hold, the optional itemtype of the item the patron is requesting |
1871 |
`item_level_hold` BOOLEAN NOT NULL DEFAULT 0, -- Is the hpld placed at item level |
1873 |
`item_level_hold` BOOLEAN NOT NULL DEFAULT 0, -- Is the hpld placed at item level |
|
|
1874 |
`reserve_group_id` int unsigned NULL DEFAULT NULL, -- The id of a group of titles reservations fulfilled when one title is picked |
1872 |
PRIMARY KEY (`reserve_id`), |
1875 |
PRIMARY KEY (`reserve_id`), |
1873 |
KEY `old_reserves_borrowernumber` (`borrowernumber`), |
1876 |
KEY `old_reserves_borrowernumber` (`borrowernumber`), |
1874 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1877 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1875 |
- |
|
|