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 |
- |
|
|