From 19b08a604ac319492b0814cf7117313d4d43557a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 25 Jun 2008 00:22:25 +0000 Subject: [PATCH] Drop redundant index on fulltextWords --- chrome/content/zotero/xpcom/schema.js | 2 ++ userdata.sql | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 19e31f32a..48a620e59 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -1278,6 +1278,8 @@ Zotero.Schema = new function(){ Zotero.DB.query("DROP TABLE IF EXISTS userFields"); Zotero.DB.query("DROP TABLE IF EXISTS userItemTypeFields"); + Zotero.DB.query("DROP INDEX IF EXISTS fulltextWords_word"); + var wordIDs = Zotero.DB.columnQuery("SELECT GROUP_CONCAT(wordID) AS wordIDs FROM fulltextWords GROUP BY word HAVING COUNT(*)>1"); if (wordIDs.length) { Zotero.DB.query("CREATE TEMPORARY TABLE deleteWordIDs (wordID INTEGER PRIMARY KEY)"); diff --git a/userdata.sql b/userdata.sql index 656665505..e2077c05b 100644 --- a/userdata.sql +++ b/userdata.sql @@ -183,7 +183,6 @@ CREATE TABLE fulltextWords ( wordID INTEGER PRIMARY KEY, word TEXT UNIQUE ); -CREATE INDEX fulltextWords_word ON fulltextWords(word); CREATE TABLE fulltextItemWords ( wordID INT,