MT1109 , follow-up to 888cde546e5c62d71f312755f4a1dbc8631626eb

Missing MySQL statements to add search_history table

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Matthias Meusburger 2009-06-12 14:27:06 +02:00 committed by Henri-Damien LAURENT
parent b3bcafd3b5
commit 245bc2f335
1 changed files with 18 additions and 1 deletions

View File

@ -1536,7 +1536,24 @@ CREATE TABLE saved_reports (
`date_run` datetime default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `search_history`
--
DROP TABLE IF EXISTS `search_history`;
CREATE TABLE IF NOT EXISTS `search_history` (
`userid` int(11) NOT NULL,
`sessionid` varchar(32) NOT NULL,
`query_desc` varchar(255) NOT NULL,
`query_cgi` varchar(255) NOT NULL,
`total` int(11) NOT NULL,
`time` timestamp NOT NULL default CURRENT_TIMESTAMP,
KEY `userid` (`userid`),
KEY `sessionid` (`sessionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Opac search history results';
--
-- Table structure for table `serial`