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

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

Return to bug 10807