mirror of
https://github.com/zotero/zotero.git
synced 2026-10-12 03:48:16 +00:00
Drop redundant index on fulltextWords
This commit is contained in:
parent
c9e4b7083e
commit
7196b90d08
2 changed files with 2 additions and 1 deletions
|
|
@ -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)");
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue