Permalink
Browse files

add new itemid field for indexing subitems.

  • Loading branch information...
1 parent 7d0b446 commit 1b4bb51edbaf27f93f26938fd517970dcea44458 diml committed Sep 10, 2007
Showing with 3 additions and 1 deletion.
  1. +1 −0 search/db/mysql.sql
  2. +2 −1 search/db/postgres7.sql
View
@@ -2,6 +2,7 @@ CREATE TABLE IF NOT EXISTS `prefix_search_documents` (
`id` int(11) NOT NULL auto_increment,
`docid` int(11) NOT NULL,
`doctype` varchar(12) NOT NULL default 'none',
+ `itemtype` varchar(32) NOT NULL default 'none',
`title` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`docdate` timestamp NOT NULL default 0,
View
@@ -2,7 +2,8 @@ CREATE TABLE prefix_search_documents (
id SERIAL8 PRIMARY KEY,
docid int4 NOT NULL,
doctype varchar(12) NOT NULL DEFAULT 'none',
- title varchar(100) NOT NULL default '',
+ itemtype varchar(32) NOT NULL DEFAULT 'none',
+ title varchar(255) NOT NULL default '',
url varchar(250) NOT NULL default '',
docdate timestamp NOT NULL,
updated timestamp NOT NULL DEFAULT NOW(),

0 comments on commit 1b4bb51

Please sign in to comment.