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

(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 1911-1917 CREATE TABLE IF NOT EXISTS `search_history` ( -- patron's opac search history Link Here
1911
  `sessionid` varchar(32) NOT NULL, -- a system generated session id
1911
  `sessionid` varchar(32) NOT NULL, -- a system generated session id
1912
  `query_desc` varchar(255) NOT NULL, -- the search that was performed
1912
  `query_desc` varchar(255) NOT NULL, -- the search that was performed
1913
  `query_cgi` text NOT NULL, -- the string to append to the search url to rerun the search
1913
  `query_cgi` text NOT NULL, -- the string to append to the search url to rerun the search
1914
  `type` varchar(255) NOT NULL DEFAULT 'biblio', -- search type, must be 'biblio' or 'authority'
1914
  `type` varchar(16) NOT NULL DEFAULT 'biblio', -- search type, must be 'biblio' or 'authority'
1915
  `total` int(11) NOT NULL, -- the total of results found
1915
  `total` int(11) NOT NULL, -- the total of results found
1916
  `time` timestamp NOT NULL default CURRENT_TIMESTAMP, -- the date and time the search was run
1916
  `time` timestamp NOT NULL default CURRENT_TIMESTAMP, -- the date and time the search was run
1917
  KEY `userid` (`userid`),
1917
  KEY `userid` (`userid`),
(-)a/installer/data/mysql/updatedatabase.pl (-2 / +1 lines)
Lines 7920-7926 if ( CheckVersion($DBversion) ) { Link Here
7920
$DBversion = "3.15.00.XXX";
7920
$DBversion = "3.15.00.XXX";
7921
if ( CheckVersion($DBversion) ) {
7921
if ( CheckVersion($DBversion) ) {
7922
    $dbh->do(q|
7922
    $dbh->do(q|
7923
        ALTER TABLE search_history ADD COLUMN type VARCHAR(255) NOT NULL DEFAULT 'biblio' AFTER query_cgi
7923
        ALTER TABLE search_history ADD COLUMN type VARCHAR(16) NOT NULL DEFAULT 'biblio' AFTER query_cgi
7924
    |);
7924
    |);
7925
    print "Upgrade to $DBversion done (Bug 10807 - Add db field search_history.type)\n";
7925
    print "Upgrade to $DBversion done (Bug 10807 - Add db field search_history.type)\n";
7926
    SetVersion($DBversion);
7926
    SetVersion($DBversion);
7927
- 

Return to bug 10807