| 1 |
-- Searchindex table definition for cases when no full-text search SQLite module is present |
| 2 |
-- (currently, only FTS3 is supported). |
| 3 |
-- Use it if you are moving your database from environment with FTS support |
| 4 |
-- to environment without it. |
| 5 |
|
| 6 |
DROP TABLE IF EXISTS /*_*/searchindex; |
| 7 |
|
| 8 |
-- These are pieces of FTS3-enabled searchindex |
| 9 |
DROP TABLE IF EXISTS /*_*/searchindex_content; |
| 10 |
DROP TABLE IF EXISTS /*_*/searchindex_segdir; |
| 11 |
DROP TABLE IF EXISTS /*_*/searchindex_segments; |
| 12 |
|
| 13 |
CREATE TABLE /*_*/searchindex ( |
| 14 |
si_page INTEGER UNSIGNED NOT NULL, |
| 15 |
si_title CLOB NOT NULL, |
| 16 |
si_text CLOB NOT NULL, |
| 17 |
PRIMARY KEY(si_page) |
| 18 |
); |
| 19 |
|
| 20 |
CREATE INDEX si_title ON /*_*/searchindex (si_title); |
| 21 |
CREATE INDEX si_text ON /*_*/searchindex (si_text); |
| 22 |
|
| 23 |
DELETE FROM /*_*/updatelog WHERE ul_key='fts3'; |