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

(-)a/installer/data/mysql/kohastructure.sql (-12 / +11 lines)
Lines 899-908 CREATE TABLE `import_records` ( Link Here
899
-- Table structure for `import_record_matches`
899
-- Table structure for `import_record_matches`
900
--
900
--
901
DROP TABLE IF EXISTS `import_record_matches`;
901
DROP TABLE IF EXISTS `import_record_matches`;
902
CREATE TABLE `import_record_matches` (
902
CREATE TABLE `import_record_matches` ( -- matches found when importing a batch of records
903
  `import_record_id` int(11) NOT NULL,
903
  `import_record_id` int(11) NOT NULL, -- the id given to the imported bib record (import_records.import_record_id)
904
  `candidate_match_id` int(11) NOT NULL,
904
  `candidate_match_id` int(11) NOT NULL, -- the biblio the imported record matches (biblio.biblionumber)
905
  `score` int(11) NOT NULL default 0,
905
  `score` int(11) NOT NULL default 0, -- the match score
906
  CONSTRAINT `import_record_matches_ibfk_1` FOREIGN KEY (`import_record_id`)
906
  CONSTRAINT `import_record_matches_ibfk_1` FOREIGN KEY (`import_record_id`)
907
             REFERENCES `import_records` (`import_record_id`) ON DELETE CASCADE ON UPDATE CASCADE,
907
             REFERENCES `import_records` (`import_record_id`) ON DELETE CASCADE ON UPDATE CASCADE,
908
  KEY `record_score` (`import_record_id`, `score`)
908
  KEY `record_score` (`import_record_id`, `score`)
Lines 1746-1758 CREATE TABLE saved_reports ( Link Here
1746
--
1746
--
1747
1747
1748
DROP TABLE IF EXISTS `search_history`;
1748
DROP TABLE IF EXISTS `search_history`;
1749
CREATE TABLE IF NOT EXISTS `search_history` (
1749
CREATE TABLE IF NOT EXISTS `search_history` ( -- patron's opac search history
1750
  `userid` int(11) NOT NULL,
1750
  `userid` int(11) NOT NULL, -- the patron who performed the search (borrowers.borrowernumber)
1751
  `sessionid` varchar(32) NOT NULL,
1751
  `sessionid` varchar(32) NOT NULL, -- a system generated session id
1752
  `query_desc` varchar(255) NOT NULL,
1752
  `query_desc` varchar(255) NOT NULL, -- the search that was performed
1753
  `query_cgi` text NOT NULL,
1753
  `query_cgi` text NOT NULL, -- the string to append to the search url to rerun the search
1754
  `total` int(11) NOT NULL,
1754
  `total` int(11) NOT NULL, -- the total of results found
1755
  `time` timestamp NOT NULL default CURRENT_TIMESTAMP,
1755
  `time` timestamp NOT NULL default CURRENT_TIMESTAMP, -- the date and time the search was run
1756
  KEY `userid` (`userid`),
1756
  KEY `userid` (`userid`),
1757
  KEY `sessionid` (`sessionid`)
1757
  KEY `sessionid` (`sessionid`)
1758
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Opac search history results';
1758
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Opac search history results';
1759
- 

Return to bug 6716