Drop redundant index on fulltextWords

This commit is contained in:
Dan Stillman 2008-06-25 00:22:25 +00:00
parent 245954b876
commit 19b08a604a
2 changed files with 2 additions and 1 deletions

View File

@ -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)");

View File

@ -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,