Full-text syncing support via API [DB reupgrade]

This commit is contained in:
Dan Stillman 2015-11-12 02:54:51 -05:00
parent cb81f3febd
commit 62aeb1da32
13 changed files with 855 additions and 130 deletions

View file

@ -290,14 +290,15 @@ CREATE TABLE groupItems (
CREATE TABLE fulltextItems (
itemID INTEGER PRIMARY KEY,
version INT,
indexedPages INT,
totalPages INT,
indexedChars INT,
totalChars INT,
synced INT DEFAULT 0,
version INT NOT NULL DEFAULT 0,
synced INT NOT NULL DEFAULT 0,
FOREIGN KEY (itemID) REFERENCES items(itemID) ON DELETE CASCADE
);
CREATE INDEX fulltextItems_synced ON fulltextItems(synced);
CREATE INDEX fulltextItems_version ON fulltextItems(version);
CREATE TABLE fulltextWords (