+++ /dev/null
-This databse scheme IS NOT installed automatically as other models
-(blocks or modules), but is internally regenerated by the search engine.
-Actually mysql and postgres7 supported.
-
-TODO : change the generation process to the new XMLDB procedure.
\ No newline at end of file
+++ /dev/null
-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,
- `updated` timestamp NOT NULL default CURRENT_TIMESTAMP,
- `courseid` int(11) NOT NULL default 0,
- `groupid` int(11) NOT NULL default 0,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM AUTO_INCREMENT=1;
+++ /dev/null
-CREATE TABLE prefix_search_documents (
- id SERIAL8 PRIMARY KEY,
- docid int4 NOT NULL,
- doctype varchar(12) NOT NULL DEFAULT 'none',
- 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(),
- courseid int4,
- groupid int4
-);