Lines 190-195
CREATE TABLE `biblioitems` ( -- information related to bibliographic records in
Link Here
|
190 |
KEY `isbn` (`isbn`(255)), |
190 |
KEY `isbn` (`isbn`(255)), |
191 |
KEY `issn` (`issn`(255)), |
191 |
KEY `issn` (`issn`(255)), |
192 |
KEY `publishercode` (`publishercode`), |
192 |
KEY `publishercode` (`publishercode`), |
|
|
193 |
KEY `timestamp` (`timestamp`), |
193 |
CONSTRAINT `biblioitems_ibfk_1` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE |
194 |
CONSTRAINT `biblioitems_ibfk_1` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE |
194 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
195 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
195 |
|
196 |
|
Lines 542-548
CREATE TABLE `deletedbiblioitems` ( -- information about bibliographic records t
Link Here
|
542 |
KEY `bibnoidx` (`biblionumber`), |
543 |
KEY `bibnoidx` (`biblionumber`), |
543 |
KEY `itemtype_idx` (`itemtype`), |
544 |
KEY `itemtype_idx` (`itemtype`), |
544 |
KEY `isbn` (`isbn`(255)), |
545 |
KEY `isbn` (`isbn`(255)), |
545 |
KEY `publishercode` (`publishercode`) |
546 |
KEY `publishercode` (`publishercode`), |
|
|
547 |
KEY `timestamp` (`timestamp`) |
546 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
548 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
547 |
|
549 |
|
548 |
-- |
550 |
-- |
Lines 680-686
CREATE TABLE `deleteditems` (
Link Here
|
680 |
KEY `delitembibnoidx` (`biblionumber`), |
682 |
KEY `delitembibnoidx` (`biblionumber`), |
681 |
KEY `delhomebranch` (`homebranch`), |
683 |
KEY `delhomebranch` (`homebranch`), |
682 |
KEY `delholdingbranch` (`holdingbranch`), |
684 |
KEY `delholdingbranch` (`holdingbranch`), |
683 |
KEY `itype_idx` (`itype`) |
685 |
KEY `itype_idx` (`itype`), |
|
|
686 |
KEY `timestamp` (`timestamp`) |
684 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
687 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
685 |
|
688 |
|
686 |
-- |
689 |
-- |
Lines 871-877
CREATE TABLE `issuingrules` ( -- circulation and fine rules
Link Here
|
871 |
-- |
874 |
-- |
872 |
|
875 |
|
873 |
DROP TABLE IF EXISTS `items`; |
876 |
DROP TABLE IF EXISTS `items`; |
874 |
CREATE TABLE `items` ( -- holdings/item information |
877 |
CREATE TABLE `items` ( -- holdings/item information |
875 |
`itemnumber` int(11) NOT NULL auto_increment, -- primary key and unique identifier added by Koha |
878 |
`itemnumber` int(11) NOT NULL auto_increment, -- primary key and unique identifier added by Koha |
876 |
`biblionumber` int(11) NOT NULL default 0, -- foreign key from biblio table used to link this item to the right bib record |
879 |
`biblionumber` int(11) NOT NULL default 0, -- foreign key from biblio table used to link this item to the right bib record |
877 |
`biblioitemnumber` int(11) NOT NULL default 0, -- foreign key from the biblioitems table to link to item to additional information |
880 |
`biblioitemnumber` int(11) NOT NULL default 0, -- foreign key from the biblioitems table to link to item to additional information |
Lines 927-932
CREATE TABLE `items` ( -- holdings/item information
Link Here
|
927 |
KEY `items_location` (`location`), |
930 |
KEY `items_location` (`location`), |
928 |
KEY `items_ccode` (`ccode`), |
931 |
KEY `items_ccode` (`ccode`), |
929 |
KEY `itype_idx` (`itype`), |
932 |
KEY `itype_idx` (`itype`), |
|
|
933 |
KEY `timestamp` (`timestamp`), |
930 |
CONSTRAINT `items_ibfk_1` FOREIGN KEY (`biblioitemnumber`) REFERENCES `biblioitems` (`biblioitemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
934 |
CONSTRAINT `items_ibfk_1` FOREIGN KEY (`biblioitemnumber`) REFERENCES `biblioitems` (`biblioitemnumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
931 |
CONSTRAINT `items_ibfk_2` FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, |
935 |
CONSTRAINT `items_ibfk_2` FOREIGN KEY (`homebranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, |
932 |
CONSTRAINT `items_ibfk_3` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, |
936 |
CONSTRAINT `items_ibfk_3` FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE CASCADE, |
Lines 2202-2208
CREATE TABLE `userflags` (
Link Here
|
2202 |
-- |
2206 |
-- |
2203 |
|
2207 |
|
2204 |
DROP TABLE IF EXISTS `virtualshelves`; |
2208 |
DROP TABLE IF EXISTS `virtualshelves`; |
2205 |
CREATE TABLE `virtualshelves` ( -- information about lists (or virtual shelves) |
2209 |
CREATE TABLE `virtualshelves` ( -- information about lists (or virtual shelves) |
2206 |
`shelfnumber` int(11) NOT NULL auto_increment, -- unique identifier assigned by Koha |
2210 |
`shelfnumber` int(11) NOT NULL auto_increment, -- unique identifier assigned by Koha |
2207 |
`shelfname` varchar(255) default NULL, -- name of the list |
2211 |
`shelfname` varchar(255) default NULL, -- name of the list |
2208 |
`owner` int default NULL, -- foreign key linking to the borrowers table (using borrowernumber) for the creator of this list (changed from varchar(80) to int) |
2212 |
`owner` int default NULL, -- foreign key linking to the borrowers table (using borrowernumber) for the creator of this list (changed from varchar(80) to int) |
Lines 2397-2408
CREATE TABLE `permissions` (
Link Here
|
2397 |
|
2401 |
|
2398 |
DROP TABLE IF EXISTS `serialitems`; |
2402 |
DROP TABLE IF EXISTS `serialitems`; |
2399 |
CREATE TABLE `serialitems` ( |
2403 |
CREATE TABLE `serialitems` ( |
2400 |
`itemnumber` int(11) NOT NULL, |
2404 |
`itemnumber` int(11) NOT NULL, |
2401 |
`serialid` int(11) NOT NULL, |
2405 |
`serialid` int(11) NOT NULL, |
2402 |
UNIQUE KEY `serialitemsidx` (`itemnumber`), |
2406 |
UNIQUE KEY `serialitemsidx` (`itemnumber`), |
2403 |
KEY `serialitems_sfk_1` (`serialid`), |
2407 |
KEY `serialitems_sfk_1` (`serialid`), |
2404 |
CONSTRAINT `serialitems_sfk_1` FOREIGN KEY (`serialid`) REFERENCES `serial` (`serialid`) ON DELETE CASCADE ON UPDATE CASCADE, |
2408 |
CONSTRAINT `serialitems_sfk_1` FOREIGN KEY (`serialid`) REFERENCES `serial` (`serialid`) ON DELETE CASCADE ON UPDATE CASCADE, |
2405 |
CONSTRAINT `serialitems_sfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE CASCADE ON UPDATE CASCADE |
2409 |
CONSTRAINT `serialitems_sfk_2` FOREIGN KEY (`itemnumber`) REFERENCES `items` (`itemnumber`) ON DELETE CASCADE ON UPDATE CASCADE |
2406 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
2410 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
2407 |
|
2411 |
|
2408 |
-- |
2412 |
-- |
2409 |
- |
|
|