|
Lines 1454-1483
CREATE TABLE `search_marc_to_field` (
Link Here
|
| 1454 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1454 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 1455 |
|
1455 |
|
| 1456 |
-- |
1456 |
-- |
| 1457 |
-- Table structure for table `serial` |
|
|
| 1458 |
-- |
| 1459 |
|
| 1460 |
DROP TABLE IF EXISTS `serial`; |
| 1461 |
CREATE TABLE `serial` ( -- issues related to subscriptions |
| 1462 |
`serialid` int(11) NOT NULL auto_increment, -- unique key for the issue |
| 1463 |
`biblionumber` varchar(100) NOT NULL default '', -- foreign key for the biblio.biblionumber that this issue is attached to |
| 1464 |
`subscriptionid` varchar(100) NOT NULL default '', -- foreign key to the subscription.subscriptionid that this issue is part of |
| 1465 |
`serialseq` varchar(100) NOT NULL default '', -- issue information (volume, number, etc) |
| 1466 |
`serialseq_x` varchar( 100 ) NULL DEFAULT NULL, -- first part of issue information |
| 1467 |
`serialseq_y` varchar( 100 ) NULL DEFAULT NULL, -- second part of issue information |
| 1468 |
`serialseq_z` varchar( 100 ) NULL DEFAULT NULL, -- third part of issue information |
| 1469 |
`status` tinyint(4) NOT NULL default 0, -- status code for this issue (see manual for full descriptions) |
| 1470 |
`planneddate` date default NULL, -- date expected |
| 1471 |
`notes` MEDIUMTEXT, -- notes |
| 1472 |
`publisheddate` date default NULL, -- date published |
| 1473 |
publisheddatetext varchar(100) default NULL, -- date published (descriptive) |
| 1474 |
`claimdate` date default NULL, -- date claimed |
| 1475 |
claims_count int(11) default 0, -- number of claims made related to this issue |
| 1476 |
`routingnotes` MEDIUMTEXT, -- notes from the routing list |
| 1477 |
PRIMARY KEY (`serialid`) |
| 1478 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 1479 |
|
| 1480 |
-- |
| 1481 |
-- Table structure for table `sessions` |
1457 |
-- Table structure for table `sessions` |
| 1482 |
-- |
1458 |
-- |
| 1483 |
|
1459 |
|
|
Lines 1988-1994
CREATE TABLE subscription_numberpatterns (
Link Here
|
| 1988 |
|
1964 |
|
| 1989 |
DROP TABLE IF EXISTS `subscription`; |
1965 |
DROP TABLE IF EXISTS `subscription`; |
| 1990 |
CREATE TABLE `subscription` ( -- information related to the subscription |
1966 |
CREATE TABLE `subscription` ( -- information related to the subscription |
| 1991 |
`biblionumber` int(11) NOT NULL default 0, -- foreign key for biblio.biblionumber that this subscription is attached to |
1967 |
`biblionumber` int(11) NOT NULL, -- foreign key for biblio.biblionumber that this subscription is attached to |
| 1992 |
`subscriptionid` int(11) NOT NULL auto_increment, -- unique key for this subscription |
1968 |
`subscriptionid` int(11) NOT NULL auto_increment, -- unique key for this subscription |
| 1993 |
`librarian` varchar(100) default '', -- the librarian's username from borrowers.userid |
1969 |
`librarian` varchar(100) default '', -- the librarian's username from borrowers.userid |
| 1994 |
`startdate` date default NULL, -- start date for this subscription |
1970 |
`startdate` date default NULL, -- start date for this subscription |
|
Lines 2032-2040
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
| 2032 |
`previousitemtype` VARCHAR( 10 ) NULL, |
2008 |
`previousitemtype` VARCHAR( 10 ) NULL, |
| 2033 |
`mana_id` int(11) NULL DEFAULT NULL, |
2009 |
`mana_id` int(11) NULL DEFAULT NULL, |
| 2034 |
PRIMARY KEY (`subscriptionid`), |
2010 |
PRIMARY KEY (`subscriptionid`), |
| 2035 |
KEY `by_biblionumber` (`biblionumber`), |
|
|
| 2036 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
2011 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
| 2037 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE |
2012 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE, |
|
|
2013 |
CONSTRAINT subscription_ibfk_3 FOREIGN KEY (biblionumber) REFERENCES biblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE |
| 2014 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 2015 |
|
| 2016 |
-- |
| 2017 |
-- Table structure for table `serial` |
| 2018 |
-- |
| 2019 |
|
| 2020 |
DROP TABLE IF EXISTS `serial`; |
| 2021 |
CREATE TABLE `serial` ( -- issues related to subscriptions |
| 2022 |
`serialid` int(11) NOT NULL auto_increment, -- unique key for the issue |
| 2023 |
`biblionumber` int(11) NOT NULL, -- foreign key for the biblio.biblionumber that this issue is attached to |
| 2024 |
`subscriptionid` int(11) NOT NULL, -- foreign key to the subscription.subscriptionid that this issue is part of |
| 2025 |
`serialseq` varchar(100) NOT NULL default '', -- issue information (volume, number, etc) |
| 2026 |
`serialseq_x` varchar( 100 ) NULL DEFAULT NULL, -- first part of issue information |
| 2027 |
`serialseq_y` varchar( 100 ) NULL DEFAULT NULL, -- second part of issue information |
| 2028 |
`serialseq_z` varchar( 100 ) NULL DEFAULT NULL, -- third part of issue information |
| 2029 |
`status` tinyint(4) NOT NULL default 0, -- status code for this issue (see manual for full descriptions) |
| 2030 |
`planneddate` date default NULL, -- date expected |
| 2031 |
`notes` MEDIUMTEXT, -- notes |
| 2032 |
`publisheddate` date default NULL, -- date published |
| 2033 |
publisheddatetext varchar(100) default NULL, -- date published (descriptive) |
| 2034 |
`claimdate` date default NULL, -- date claimed |
| 2035 |
claims_count int(11) default 0, -- number of claims made related to this issue |
| 2036 |
`routingnotes` MEDIUMTEXT, -- notes from the routing list |
| 2037 |
PRIMARY KEY (`serialid`), |
| 2038 |
CONSTRAINT serial_ibfk_1 FOREIGN KEY (biblionumber) REFERENCES biblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE, |
| 2039 |
CONSTRAINT serial_ibfk_2 FOREIGN KEY (subscriptionid) REFERENCES subscription (subscriptionid) ON DELETE CASCADE ON UPDATE CASCADE |
| 2038 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
2040 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 2039 |
|
2041 |
|
| 2040 |
-- |
2042 |
-- |
|
Lines 2043-2050
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
| 2043 |
|
2045 |
|
| 2044 |
DROP TABLE IF EXISTS `subscriptionhistory`; |
2046 |
DROP TABLE IF EXISTS `subscriptionhistory`; |
| 2045 |
CREATE TABLE `subscriptionhistory` ( |
2047 |
CREATE TABLE `subscriptionhistory` ( |
| 2046 |
`biblionumber` int(11) NOT NULL default 0, |
2048 |
`biblionumber` int(11) NOT NULL, |
| 2047 |
`subscriptionid` int(11) NOT NULL default 0, |
2049 |
`subscriptionid` int(11) NOT NULL, |
| 2048 |
`histstartdate` date default NULL, |
2050 |
`histstartdate` date default NULL, |
| 2049 |
`histenddate` date default NULL, |
2051 |
`histenddate` date default NULL, |
| 2050 |
`missinglist` LONGTEXT NOT NULL, |
2052 |
`missinglist` LONGTEXT NOT NULL, |
|
Lines 2052-2058
CREATE TABLE `subscriptionhistory` (
Link Here
|
| 2052 |
`opacnote` LONGTEXT NULL, |
2054 |
`opacnote` LONGTEXT NULL, |
| 2053 |
`librariannote` LONGTEXT NULL, |
2055 |
`librariannote` LONGTEXT NULL, |
| 2054 |
PRIMARY KEY (`subscriptionid`), |
2056 |
PRIMARY KEY (`subscriptionid`), |
| 2055 |
KEY `biblionumber` (`biblionumber`) |
2057 |
CONSTRAINT subscription_history_ibfk_1 FOREIGN KEY (biblionumber) REFERENCES biblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE, |
|
|
2058 |
CONSTRAINT subscription_history_ibfk_2 FOREIGN KEY (subscriptionid) REFERENCES subscription (subscriptionid) ON DELETE CASCADE ON UPDATE CASCADE |
| 2056 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
2059 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 2057 |
|
2060 |
|
| 2058 |
-- |
2061 |
-- |