Lines 1810-1816
CREATE TABLE `old_issues` ( -- lists items that were checked out and have been r
Link Here
|
1810 |
CONSTRAINT `old_issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) |
1810 |
CONSTRAINT `old_issues_ibfk_1` FOREIGN KEY (`borrowernumber`) REFERENCES `borrowers` (`borrowernumber`) |
1811 |
ON DELETE SET NULL ON UPDATE SET NULL, |
1811 |
ON DELETE SET NULL ON UPDATE SET NULL, |
1812 |
CONSTRAINT `old_issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) |
1812 |
CONSTRAINT `old_issues_ibfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) |
1813 |
ON DELETE SET NULL ON UPDATE SET NULL |
1813 |
ON DELETE SET NULL ON UPDATE SET NULL, |
|
|
1814 |
CONSTRAINT `old_reserves_ibfk_5` FOREIGN KEY (reserve_group_id) REFERENCES reserve_group (reserve_group_id) |
1815 |
ON DELETE SET NULL ON UPDATE CASCADE |
1814 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1816 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1815 |
|
1817 |
|
1816 |
-- |
1818 |
-- |
Lines 1964-1969
CREATE TABLE `old_reserves` ( -- this table holds all holds/reserves that have b
Link Here
|
1964 |
`suspend` BOOLEAN NOT NULL DEFAULT 0, -- in this hold suspended (1 for yes, 0 for no) |
1966 |
`suspend` BOOLEAN NOT NULL DEFAULT 0, -- in this hold suspended (1 for yes, 0 for no) |
1965 |
`suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely) |
1967 |
`suspend_until` DATETIME NULL DEFAULT NULL, -- the date this hold is suspended until (NULL for infinitely) |
1966 |
`itemtype` VARCHAR(10) NULL DEFAULT NULL, -- If record level hold, the optional itemtype of the item the patron is requesting |
1968 |
`itemtype` VARCHAR(10) NULL DEFAULT NULL, -- If record level hold, the optional itemtype of the item the patron is requesting |
|
|
1969 |
`reserve_group_id` int unsigned NULL DEFAULT NULL, -- The id of a group of titles reservations fulfilled when one title is picked |
1967 |
PRIMARY KEY (`reserve_id`), |
1970 |
PRIMARY KEY (`reserve_id`), |
1968 |
KEY `old_reserves_borrowernumber` (`borrowernumber`), |
1971 |
KEY `old_reserves_borrowernumber` (`borrowernumber`), |
1969 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1972 |
KEY `old_reserves_biblionumber` (`biblionumber`), |
1970 |
- |
|
|