|
Lines 1420-1449
CREATE TABLE `search_marc_to_field` (
Link Here
|
| 1420 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
1420 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 1421 |
|
1421 |
|
| 1422 |
-- |
1422 |
-- |
| 1423 |
-- Table structure for table `serial` |
|
|
| 1424 |
-- |
| 1425 |
|
| 1426 |
DROP TABLE IF EXISTS `serial`; |
| 1427 |
CREATE TABLE `serial` ( -- issues related to subscriptions |
| 1428 |
`serialid` int(11) NOT NULL auto_increment, -- unique key for the issue |
| 1429 |
`biblionumber` varchar(100) NOT NULL default '', -- foreign key for the biblio.biblionumber that this issue is attached to |
| 1430 |
`subscriptionid` varchar(100) NOT NULL default '', -- foreign key to the subscription.subscriptionid that this issue is part of |
| 1431 |
`serialseq` varchar(100) NOT NULL default '', -- issue information (volume, number, etc) |
| 1432 |
`serialseq_x` varchar( 100 ) NULL DEFAULT NULL, -- first part of issue information |
| 1433 |
`serialseq_y` varchar( 100 ) NULL DEFAULT NULL, -- second part of issue information |
| 1434 |
`serialseq_z` varchar( 100 ) NULL DEFAULT NULL, -- third part of issue information |
| 1435 |
`status` tinyint(4) NOT NULL default 0, -- status code for this issue (see manual for full descriptions) |
| 1436 |
`planneddate` date default NULL, -- date expected |
| 1437 |
`notes` MEDIUMTEXT, -- notes |
| 1438 |
`publisheddate` date default NULL, -- date published |
| 1439 |
publisheddatetext varchar(100) default NULL, -- date published (descriptive) |
| 1440 |
`claimdate` date default NULL, -- date claimed |
| 1441 |
claims_count int(11) default 0, -- number of claims made related to this issue |
| 1442 |
`routingnotes` MEDIUMTEXT, -- notes from the routing list |
| 1443 |
PRIMARY KEY (`serialid`) |
| 1444 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 1445 |
|
| 1446 |
-- |
| 1447 |
-- Table structure for table `sessions` |
1423 |
-- Table structure for table `sessions` |
| 1448 |
-- |
1424 |
-- |
| 1449 |
|
1425 |
|
|
Lines 1956-1962
CREATE TABLE subscription_numberpatterns (
Link Here
|
| 1956 |
|
1932 |
|
| 1957 |
DROP TABLE IF EXISTS `subscription`; |
1933 |
DROP TABLE IF EXISTS `subscription`; |
| 1958 |
CREATE TABLE `subscription` ( -- information related to the subscription |
1934 |
CREATE TABLE `subscription` ( -- information related to the subscription |
| 1959 |
`biblionumber` int(11) NOT NULL default 0, -- foreign key for biblio.biblionumber that this subscription is attached to |
1935 |
`biblionumber` int(11) NOT NULL, -- foreign key for biblio.biblionumber that this subscription is attached to |
| 1960 |
`subscriptionid` int(11) NOT NULL auto_increment, -- unique key for this subscription |
1936 |
`subscriptionid` int(11) NOT NULL auto_increment, -- unique key for this subscription |
| 1961 |
`librarian` varchar(100) default '', -- the librarian's username from borrowers.userid |
1937 |
`librarian` varchar(100) default '', -- the librarian's username from borrowers.userid |
| 1962 |
`startdate` date default NULL, -- start date for this subscription |
1938 |
`startdate` date default NULL, -- start date for this subscription |
|
Lines 2000-2008
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
| 2000 |
`previousitemtype` VARCHAR( 10 ) NULL, |
1976 |
`previousitemtype` VARCHAR( 10 ) NULL, |
| 2001 |
`mana_id` int(11) NULL DEFAULT NULL, |
1977 |
`mana_id` int(11) NULL DEFAULT NULL, |
| 2002 |
PRIMARY KEY (`subscriptionid`), |
1978 |
PRIMARY KEY (`subscriptionid`), |
| 2003 |
KEY `by_biblionumber` (`biblionumber`), |
|
|
| 2004 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
1979 |
CONSTRAINT subscription_ibfk_1 FOREIGN KEY (periodicity) REFERENCES subscription_frequencies (id) ON DELETE SET NULL ON UPDATE CASCADE, |
| 2005 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE |
1980 |
CONSTRAINT subscription_ibfk_2 FOREIGN KEY (numberpattern) REFERENCES subscription_numberpatterns (id) ON DELETE SET NULL ON UPDATE CASCADE, |
|
|
1981 |
CONSTRAINT subscription_ibfk_3 FOREIGN KEY (biblionumber) REFERENCES biblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE |
| 1982 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 1983 |
|
| 1984 |
-- |
| 1985 |
-- Table structure for table `serial` |
| 1986 |
-- |
| 1987 |
|
| 1988 |
DROP TABLE IF EXISTS `serial`; |
| 1989 |
CREATE TABLE `serial` ( -- issues related to subscriptions |
| 1990 |
`serialid` int(11) NOT NULL auto_increment, -- unique key for the issue |
| 1991 |
`biblionumber` int(11) NOT NULL, -- foreign key for the biblio.biblionumber that this issue is attached to |
| 1992 |
`subscriptionid` int(11) NOT NULL, -- foreign key to the subscription.subscriptionid that this issue is part of |
| 1993 |
`serialseq` varchar(100) NOT NULL default '', -- issue information (volume, number, etc) |
| 1994 |
`serialseq_x` varchar( 100 ) NULL DEFAULT NULL, -- first part of issue information |
| 1995 |
`serialseq_y` varchar( 100 ) NULL DEFAULT NULL, -- second part of issue information |
| 1996 |
`serialseq_z` varchar( 100 ) NULL DEFAULT NULL, -- third part of issue information |
| 1997 |
`status` tinyint(4) NOT NULL default 0, -- status code for this issue (see manual for full descriptions) |
| 1998 |
`planneddate` date default NULL, -- date expected |
| 1999 |
`notes` MEDIUMTEXT, -- notes |
| 2000 |
`publisheddate` date default NULL, -- date published |
| 2001 |
publisheddatetext varchar(100) default NULL, -- date published (descriptive) |
| 2002 |
`claimdate` date default NULL, -- date claimed |
| 2003 |
claims_count int(11) default 0, -- number of claims made related to this issue |
| 2004 |
`routingnotes` MEDIUMTEXT, -- notes from the routing list |
| 2005 |
PRIMARY KEY (`serialid`), |
| 2006 |
CONSTRAINT serial_ibfk_1 FOREIGN KEY (biblionumber) REFERENCES biblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE, |
| 2007 |
CONSTRAINT serial_ibfk_2 FOREIGN KEY (subscriptionid) REFERENCES subscription (subscriptionid) ON DELETE CASCADE ON UPDATE CASCADE |
| 2006 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
2008 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 2007 |
|
2009 |
|
| 2008 |
-- |
2010 |
-- |
|
Lines 2011-2018
CREATE TABLE `subscription` ( -- information related to the subscription
Link Here
|
| 2011 |
|
2013 |
|
| 2012 |
DROP TABLE IF EXISTS `subscriptionhistory`; |
2014 |
DROP TABLE IF EXISTS `subscriptionhistory`; |
| 2013 |
CREATE TABLE `subscriptionhistory` ( |
2015 |
CREATE TABLE `subscriptionhistory` ( |
| 2014 |
`biblionumber` int(11) NOT NULL default 0, |
2016 |
`biblionumber` int(11) NOT NULL, |
| 2015 |
`subscriptionid` int(11) NOT NULL default 0, |
2017 |
`subscriptionid` int(11) NOT NULL, |
| 2016 |
`histstartdate` date default NULL, |
2018 |
`histstartdate` date default NULL, |
| 2017 |
`histenddate` date default NULL, |
2019 |
`histenddate` date default NULL, |
| 2018 |
`missinglist` LONGTEXT NOT NULL, |
2020 |
`missinglist` LONGTEXT NOT NULL, |
|
Lines 2020-2026
CREATE TABLE `subscriptionhistory` (
Link Here
|
| 2020 |
`opacnote` LONGTEXT NULL, |
2022 |
`opacnote` LONGTEXT NULL, |
| 2021 |
`librariannote` LONGTEXT NULL, |
2023 |
`librariannote` LONGTEXT NULL, |
| 2022 |
PRIMARY KEY (`subscriptionid`), |
2024 |
PRIMARY KEY (`subscriptionid`), |
| 2023 |
KEY `biblionumber` (`biblionumber`) |
2025 |
CONSTRAINT subscription_history_ibfk_1 FOREIGN KEY (biblionumber) REFERENCES biblio (biblionumber) ON DELETE CASCADE ON UPDATE CASCADE, |
|
|
2026 |
CONSTRAINT subscription_history_ibfk_2 FOREIGN KEY (subscriptionid) REFERENCES subscription (subscriptionid) ON DELETE CASCADE ON UPDATE CASCADE |
| 2024 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
2027 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 2025 |
|
2028 |
|
| 2026 |
-- |
2029 |
-- |