Lines 1939-1944
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 |
`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) |
1943 |
`sessionid` varchar(32) NOT NULL, -- a system generated session id |
1944 |
`sessionid` varchar(32) NOT NULL, -- a system generated session id |
1944 |
`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-1953
CREATE TABLE IF NOT EXISTS `search_history` ( -- patron's opac search history
Link Here
|
1948 |
`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 |
1949 |
KEY `userid` (`userid`), |
1950 |
KEY `userid` (`userid`), |
1950 |
KEY `sessionid` (`sessionid`) |
1951 |
KEY `sessionid` (`sessionid`) |
|
|
1952 |
PRIMARY KEY (`id`) |
1951 |
) 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'; |
1952 |
|
1954 |
|
1953 |
|
1955 |
|