View | Details | Raw Unified | Return to bug 7310
Collapse All | Expand All

(-)a/installer/data/mysql/kohastructure.sql (-3 / +20 lines)
Lines 1979-1988 DROP TABLE IF EXISTS `virtualshelves`; Link Here
1979
CREATE TABLE `virtualshelves` ( -- information about lists (or virtual shelves) 
1979
CREATE TABLE `virtualshelves` ( -- information about lists (or virtual shelves) 
1980
  `shelfnumber` int(11) NOT NULL auto_increment, -- unique identifier assigned by Koha
1980
  `shelfnumber` int(11) NOT NULL auto_increment, -- unique identifier assigned by Koha
1981
  `shelfname` varchar(255) default NULL, -- name of the list
1981
  `shelfname` varchar(255) default NULL, -- name of the list
1982
  `owner` varchar(80) default NULL, -- foriegn key linking to the borrowers table (using borrowernumber) for the creator of this list
1982
  `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)
1983
  `category` varchar(1) default NULL, -- type of list (public [2], private [1] or open [3])
1983
  `category` varchar(1) default NULL, -- type of list (private [1], public [2])
1984
  `sortfield` varchar(16) default NULL, -- the field this list is sorted on
1984
  `sortfield` varchar(16) default NULL, -- the field this list is sorted on
1985
  `lastmodified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time the list was last modified
1985
  `lastmodified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time the list was last modified
1986
  `allow_add` tinyint(1) default 1, -- permission for adding entries to list
1987
  `allow_delete_own` tinyint(1) default 1, -- permission for deleting entries frm list that you added yourself
1988
  `allow_delete_other` tinyint(1) default 0, -- permission for deleting entries from list that another person added
1986
  PRIMARY KEY  (`shelfnumber`)
1989
  PRIMARY KEY  (`shelfnumber`)
1987
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1990
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
1988
1991
Lines 1996-2001 CREATE TABLE `virtualshelfcontents` ( -- information about the titles in a list Link Here
1996
  `biblionumber` int(11) NOT NULL default 0, -- foreign key linking to the biblio table, defines the bib record that has been added to the list
1999
  `biblionumber` int(11) NOT NULL default 0, -- foreign key linking to the biblio table, defines the bib record that has been added to the list
1997
  `flags` int(11) default NULL,
2000
  `flags` int(11) default NULL,
1998
  `dateadded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- date and time this bib record was added to the list
2001
  `dateadded` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- date and time this bib record was added to the list
2002
  `borrowernumber` int, -- borrower number that created this list entry (only the first one is saved: no need for use in/as key)
1999
  KEY `shelfnumber` (`shelfnumber`),
2003
  KEY `shelfnumber` (`shelfnumber`),
2000
  KEY `biblionumber` (`biblionumber`),
2004
  KEY `biblionumber` (`biblionumber`),
2001
  CONSTRAINT `virtualshelfcontents_ibfk_1` FOREIGN KEY (`shelfnumber`) REFERENCES `virtualshelves` (`shelfnumber`) ON DELETE CASCADE ON UPDATE CASCADE,
2005
  CONSTRAINT `virtualshelfcontents_ibfk_1` FOREIGN KEY (`shelfnumber`) REFERENCES `virtualshelves` (`shelfnumber`) ON DELETE CASCADE ON UPDATE CASCADE,
Lines 2003-2008 CREATE TABLE `virtualshelfcontents` ( -- information about the titles in a list Link Here
2003
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2007
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2004
2008
2005
--
2009
--
2010
-- Table structure for table `virtualshelfshares`
2011
--
2012
2013
DROP TABLE IF EXISTS `virtualshelfshares`;
2014
CREATE TABLE `virtualshelfshares` ( --shared private lists
2015
  `id` int AUTO_INCREMENT PRIMARY KEY,  --unique key
2016
  `shelfnumber` int NOT NULL,  -- foreign key for virtualshelves
2017
  `borrowernumber` int,  -- borrower that accepted access to this list
2018
  `invitekey` varchar(10), -- temporary string used in accepting the invitation to access thist list; not-empty means that the invitation has not been accepted yet
2019
  `sharedate` datetime,  -- date of invitation or acceptance of invitation
2020
  CONSTRAINT `virtualshelfshares_ibfk_1` FOREIGN KEY (`shelfnumber`) REFERENCES `virtualshelves` (`shelfnumber`) ON DELETE CASCADE ON UPDATE CASCADE,
2021
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2022
2023
--
2006
-- Table structure for table `z3950servers`
2024
-- Table structure for table `z3950servers`
2007
--
2025
--
2008
2026
2009
- 

Return to bug 7310