The fulltext index wasn't actually being rebuilt correctly since the addition of the INSERT INTO ... SELECT FROM workaround -- fulltextItems has to be populated after the rebuild of fulltextItemWords
This commit is contained in:
parent
8e4625bc41
commit
d9bf81c231
|
@ -151,6 +151,10 @@ Zotero.Schema = new function(){
|
|||
}
|
||||
insertStatement.reset();
|
||||
Zotero.DB.commitTransaction();
|
||||
|
||||
Zotero.DB.beginTransaction();
|
||||
Zotero.DB.query("INSERT INTO fulltextItems SELECT DISTINCT itemID, 1 FROM fulltextItemWords");
|
||||
Zotero.DB.commitTransaction();
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.debug(e);
|
||||
|
@ -1164,7 +1168,6 @@ Zotero.Schema = new function(){
|
|||
|
||||
Zotero.DB.query("DROP TABLE fulltextItems");
|
||||
Zotero.DB.query("CREATE TABLE fulltextItems (\n itemID INT,\n version INT,\n PRIMARY KEY (itemID),\n FOREIGN KEY (itemID) REFERENCES items(itemID)\n);");
|
||||
Zotero.DB.query("INSERT INTO fulltextItems SELECT DISTINCT itemID, 1 FROM fulltextItemWords");
|
||||
}
|
||||
|
||||
if (i==36) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user