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

(-)a/installer/data/mysql/kohastructure.sql (-3 / +2 lines)
Lines 1939-1945 CREATE TABLE saved_reports ( Link Here
1939
1939
1940
DROP TABLE IF EXISTS `search_history`;
1940
DROP TABLE IF EXISTS `search_history`;
1941
CREATE TABLE IF NOT EXISTS `search_history` ( -- patron's opac search history
1941
CREATE TABLE IF NOT EXISTS `search_history` ( -- patron's opac search history
1942
  `ìd` int(11) NOT NULL auto_increment, -- search history id
1942
  `id` int(11) NOT NULL auto_increment, -- search history id
1943
  `userid` int(11) NOT NULL, -- the patron who performed the search (borrowers.borrowernumber)
1943
  `userid` int(11) NOT NULL, -- the patron who performed the search (borrowers.borrowernumber)
1944
  `sessionid` varchar(32) NOT NULL, -- a system generated session id
1944
  `sessionid` varchar(32) NOT NULL, -- a system generated session id
1945
  `query_desc` varchar(255) NOT NULL, -- the search that was performed
1945
  `query_desc` varchar(255) NOT NULL, -- the search that was performed
Lines 1948-1954 CREATE TABLE IF NOT EXISTS `search_history` ( -- patron's opac search history Link Here
1948
  `total` int(11) NOT NULL, -- the total of results found
1948
  `total` int(11) NOT NULL, -- the total of results found
1949
  `time` timestamp NOT NULL default CURRENT_TIMESTAMP, -- the date and time the search was run
1949
  `time` timestamp NOT NULL default CURRENT_TIMESTAMP, -- the date and time the search was run
1950
  KEY `userid` (`userid`),
1950
  KEY `userid` (`userid`),
1951
  KEY `sessionid` (`sessionid`)
1951
  KEY `sessionid` (`sessionid`),
1952
  PRIMARY KEY  (`id`)
1952
  PRIMARY KEY  (`id`)
1953
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Opac search history results';
1953
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Opac search history results';
1954
1954
1955
- 

Return to bug 11430